generated from admin/template
первая лаба
This commit is contained in:
@@ -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}])");
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user