первая лаба

This commit is contained in:
328p
2026-09-03 16:19:48 +03:00
parent 478c06223c
commit 93ec10ea53
+32
View File
@@ -0,0 +1,32 @@
using System;
class Program {
static void Main()
{
//ЗАДАНИЕ 1
//string pokemonName ="Charmander";
//string elementType ="Fire";
//int level = 1;
// int hp = 95;
//Console.WriteLine("===Pokemon DataBase=== ");
//Console.WriteLine( $" Pokemon:{pokemonName}");
//Console.WriteLine( $" Element:{elementType}");
//Console.WriteLine( $" level:{level} | HP: {hp}");
//Console.ReadLine();
//ЗАДАНИЕ 2
Console.Write ("Enter the trainers name: \n ");
string trainerName = Console.ReadLine();
Console.Write ("Enter the Pokemons name: \n ");
string pokemonName = Console.ReadLine();
Console.Write ("Enter the region: \n ");
string region = Console.ReadLine();
Console.Write ("Enter the element: \n");
string element = Console.ReadLine();
Console.Write("Pokemon Pasport \nTrainer:{trainerName}(Region{region}| Pokemon{pokemonName} [Element{element}])");
}
}