Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ConsoleApp1
- {
- class Program
- {
- static void Main(string[] args)
- {
- Player player1 = new Player("Хош Пак", 35,110,90,27);
- player1.ShowStats();
- }
- class Player
- {
- public string Name;
- public int Age;
- public int Height;
- public int Weight;
- public int Lvl;
- public Player(string name, int age, int height, int weight, int lvl)
- {
- Name = name;
- Age = age;
- Height = height;
- Weight = weight;
- Lvl = lvl;
- }
- public void ShowStats()
- {
- Console.WriteLine($"Имя: {Name}\nВозраст: {Age}\nРост: {Height}\nВес: {Weight}\nУровень {Lvl}");
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment