Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Matrix
- {
- class Program
- {
- static readonly string[] hairArray = new string[] { "brown-haired ", "blonde-haired ", "red-haired " };
- static readonly string[] raceArray = new string[] { "human ", "dwarf ", "elf " };
- static readonly string[] jobArray = new string[] { "warrior.", "mage.", "thief." };
- static void Main(string[] args)
- {
- Console.WriteLine("Choose a race. 1 = Human. 2 = Dwarf. 3 = Elf.");
- int raceResponse = int.Parse(Console.ReadLine());
- Console.WriteLine("Choose a hair colour. 1 = Brown. 2 = Blonde. 3 = Red.");
- int hairResponse = int.Parse(Console.ReadLine());
- Console.WriteLine("Choose a job. 1 = Warrior. 2 = Mage. 3 = Thief.");
- int jobResponse = int.Parse(Console.ReadLine());
- Console.Write("You have chosen to be a " + hairArray[hairResponse - 1] + raceArray[raceResponse - 1] + jobArray[jobResponse - 1]);
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement