sasfvs icon

Untitled

sasfvs | PRO | 07/03/17 08:43:11 PM UTC | 0 ⭐ | 278 👁️ | Never ⏰ | []
C# |

1.42 KB

|

None

|

0 👍

/

0 👎

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 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("Ypou lost me");
                        break;
                }
            } else {
           
                Console.WriteLine("I do not think you can be a trusted person.");
            }
            Console.ReadLine();
        }
    }
}

Comments