Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Threading;
- using System.Xml.Schema;
- namespace tESt
- {
- class Program
- {
- static void Main(string[] args)
- {
- var name = Console.ReadLine();
- var health = int.Parse(Console.ReadLine());
- var maxHealth = int.Parse(Console.ReadLine());
- var energy = int.Parse(Console.ReadLine());
- var maxEnergy = int.Parse(Console.ReadLine());
- Console.WriteLine($"Name: {name}");
- Console.WriteLine("Health: |{0}{1}|",
- new string('|', health),
- new string('.', maxHealth - health));
- Console.WriteLine("Energy: |{0}{1}|",
- new string('|', energy),
- new string('.', maxEnergy - energy));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement