Advertisement
bacco

Character Stats

May 14th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.68 KB | None | 0 0
  1. using System;
  2. using System.Threading;
  3. using System.Xml.Schema;
  4.  
  5. namespace tESt
  6. {
  7.     class Program
  8.     {
  9.         static void Main(string[] args)
  10.         {
  11.             var name = Console.ReadLine();
  12.  
  13.             var health = int.Parse(Console.ReadLine());
  14.             var maxHealth = int.Parse(Console.ReadLine());
  15.             var energy = int.Parse(Console.ReadLine());
  16.             var maxEnergy = int.Parse(Console.ReadLine());
  17.  
  18.             Console.WriteLine($"Name: {name}");
  19.  
  20.             Console.WriteLine("Health: |{0}{1}|",
  21.                               new string('|', health),
  22.                               new string('.', maxHealth - health));
  23.  
  24.             Console.WriteLine("Energy: |{0}{1}|",
  25.                               new string('|', energy),
  26.                               new string('.', maxEnergy - energy));
  27.         }
  28.     }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement