sasfvs

Untitled

Jul 3rd, 2017
312
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.42 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApplication1
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             var autostring = "test";
  14.             var autonumber = "1";
  15.             Boolean fate = true;
  16.             Console.Write("Hi to you. What is you name? ");
  17.             string name = Console.ReadLine();
  18.             Console.WriteLine("I am happy to meet you, " + name);
  19.             if (((name == "Vlad") || (name == "Lucian")) && (fate)){
  20.  
  21.                 Console.WriteLine("Oh you are " + name + "? Welcome back you trusted person.");
  22.  
  23.                 int menu = Convert.ToInt32(Console.ReadLine());
  24.  
  25.                 switch (menu){
  26.                     case 0:
  27.                         Console.WriteLine("blue");
  28.                         break;
  29.                    case 1:
  30.                         Console.WriteLine("red");
  31.                         break;
  32.                    case 2:
  33.                         Console.WriteLine("yellow");
  34.                         break;
  35.                    default:
  36.                         Console.WriteLine("Ypou lost me");
  37.                         break;
  38.                 }
  39.             } else {
  40.            
  41.                 Console.WriteLine("I do not think you can be a trusted person.");
  42.             }
  43.             Console.ReadLine();
  44.         }
  45.     }
  46. }
Advertisement
Add Comment
Please, Sign In to add comment