using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
var autostring = "test";
var autonumber = "1";
Boolean fate = true;
Console.Write("Hi to you. What is you name? ");
string name = Console.ReadLine();
Console.WriteLine("I am happy to meet you, " + name);
if (((name == "Vlad") || (name == "Lucian")) && (fate)){
Console.WriteLine("Oh you are " + name + "? Welcome back you trusted person.");
int i = 0;
while (i < 10)
{
Console.Write("Say a number:1");
int menu = Convert.ToInt32(Console.ReadLine());
switch (menu)
{
case 0:
Console.WriteLine("blue");
break;
case 1:
Console.WriteLine("red");
break;
case 2:
Console.WriteLine("yellow");
break;
default:
Console.WriteLine("You lost me");
break;
}
i = i + 1;
}
} else {
Console.WriteLine("I do not think you can be a trusted person.");
}
Console.ReadLine();
}
}
}
Comments