diff --git a/lab01.txt b/lab01.txt new file mode 100644 index 0000000..0b32f5b --- /dev/null +++ b/lab01.txt @@ -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**************************************** "); + + } +}