Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Net.Http.Headers;
- namespace testing
- {
- class Program
- {
- static void Main(string[] args)
- {
- bool isUp = true;
- while (isUp)
- {
- Console.WriteLine("Type 1 or 2 or 3, 4 for exit");
- int userInput = Convert.ToInt32(Console.ReadLine());
- switch (userInput)
- {
- case 1:
- Console.WriteLine("one is one");
- break;
- case 2:
- Console.WriteLine("two is two");
- break;
- case 3:
- Console.WriteLine("three is three");
- break;
- case 4:
- Console.WriteLine("Bye, see you next time!");
- isUp = false;
- break;
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement