sasfvs

Untitled

Jul 3rd, 2017
348
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.72 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.                
  24.                 int i = 0;
  25.  
  26.                 while (i < 10)
  27.                 {
  28.                     Console.Write("Say a number:1");
  29.                     int menu = Convert.ToInt32(Console.ReadLine());
  30.                     switch (menu)
  31.                     {
  32.                         case 0:
  33.                             Console.WriteLine("blue");
  34.                             break;
  35.                         case 1:
  36.                             Console.WriteLine("red");
  37.                             break;
  38.                         case 2:
  39.                             Console.WriteLine("yellow");
  40.                             break;
  41.                         default:
  42.                             Console.WriteLine("You lost me");
  43.                             break;
  44.                     }
  45.                     i = i + 1;
  46.                 }
  47.  
  48.                
  49.             } else {
  50.            
  51.                 Console.WriteLine("I do not think you can be a trusted person.");
  52.             }
  53.             Console.ReadLine();
  54.         }
  55.     }
  56. }
Advertisement
Add Comment
Please, Sign In to add comment