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