Advertisement
Guest User

Untitled

a guest
Oct 17th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.04 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Matrix
  4. {
  5.     class Program
  6.     {
  7.         static readonly string[] hairArray = new string[] { "brown-haired ", "blonde-haired ", "red-haired " };
  8.         static readonly string[] raceArray = new string[] { "human ", "dwarf ", "elf " };
  9.         static readonly string[] jobArray  = new string[] { "warrior.", "mage.", "thief." };
  10.  
  11.         static void Main(string[] args)
  12.         {
  13.             Console.WriteLine("Choose a race. 1 = Human. 2 = Dwarf. 3 = Elf.");
  14.             int raceResponse = int.Parse(Console.ReadLine());
  15.  
  16.             Console.WriteLine("Choose a hair colour. 1 = Brown. 2 = Blonde. 3 = Red.");
  17.             int hairResponse = int.Parse(Console.ReadLine());
  18.  
  19.             Console.WriteLine("Choose a job. 1 = Warrior. 2 = Mage. 3 = Thief.");
  20.             int jobResponse = int.Parse(Console.ReadLine());
  21.  
  22.             Console.Write("You have chosen to be a " + hairArray[hairResponse - 1] + raceArray[raceResponse - 1] + jobArray[jobResponse - 1]);
  23.             Console.ReadKey();
  24.         }
  25.     }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement