Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ExamplesC
- {
- class Program
- {
- static bool exitgame = false;
- static void Main(string[] args)
- {
- Console.WriteLine("Welcome stranger, would you like to visit my shop?");
- while (!exitgame)
- {
- string result = Console.ReadLine();
- if (result == "yes")
- {
- Console.WriteLine("Have a good look:");
- Console.WriteLine("1. Iron Sword");
- Console.WriteLine("2. Iron Axe");
- Console.WriteLine("3. Potions");
- Console.WriteLine("4. Holy Water");
- exitgame = true;
- }
- else if (result == "no")
- {
- Console.WriteLine("fuk u lil shit, i sell gud stuff, you must die");
- Console.WriteLine("* Merchant stabs you");
- Console.WriteLine("* You died.");
- exitgame = true;
- }
- else
- {
- Console.WriteLine("Invalid Command..");
- }
- }
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement