generated from admin/template
Лаба 1 дополнина
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
|
||||
class Program {
|
||||
static void Main() {
|
||||
string pokemonName ="Charmander";
|
||||
string elementType = "Fire";
|
||||
int level = 1;
|
||||
int hp = 95;
|
||||
Console.WriteLine($"===Database== \n Pokemon: {pokemonName} \n Element: {elementType} \n Level: {level}| HP: {hp}");
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
using System;
|
||||
|
||||
public class Test
|
||||
{
|
||||
public static void Main()
|
||||
{
|
||||
Console.Write("Введите имя тренера:\n");
|
||||
string trainerName = Console.ReadLine() ;
|
||||
Console.Write("Введите имя покемона:\n");
|
||||
string pokemonName = Console.ReadLine();
|
||||
Console.Write("Введите стихию:\n");
|
||||
string elementType = Console.ReadLine();
|
||||
Console.Write("Введите регион:\n");
|
||||
string regionName = Console.ReadLine();
|
||||
Console.WriteLine($"****************************************\n ПАСПОРТ ПОКЕМОНА \n Тренер: {trainerName} (Регион: {regionName})\n Покемон: {pokemonName} [ Стихия: {elementType}] \n**************************************** ");
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user