Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _01_IntroandBasicSyntax_Exercises
- {
- class Program
- {
- static void Main(string[] args)
- {
- string nameCharacter = Console.ReadLine();
- int currentHealth = int.Parse(Console.ReadLine());
- int maximumHealth = int.Parse(Console.ReadLine());
- int currentEnerg = int.Parse(Console.ReadLine());
- int maximumEnergy = int.Parse(Console.ReadLine());
- Console.WriteLine($"Name: {nameCharacter}");
- Console.WriteLine($"Health: |{new string('|', currentHealth)}{new string('.', maximumHealth - currentHealth)}|");
- Console.WriteLine($"Energy: |{new string('|', currentEnerg)}{new string('.', maximumEnergy - currentEnerg)}|");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement