Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void Main(string[] args)
- {
- Console.WriteLine("Enter your name#");
- string a;
- a=Console.ReadLine();
- Console.WriteLine("Hello {0}", a);
- Console.WriteLine("How many years did you study?");
- int b;
- b=int.Parse(Console.ReadLine());
- if(b>=10)
- {
- Console.WriteLine("Your study period is normal ");
- }
- else if (b>12){
- Console.WriteLine("Your study period is good");
- }
- Console.WriteLine("Did you study at the university! Y/N");
- string x;
- x=Console.ReadLine();
- if (x == "Y")
- {
- Console.WriteLine("Did you study programming! Y/N");
- string q;
- q = Console.ReadLine();
- if (q == "Y")
- {
- Console.WriteLine("You can be best student#");
- }
- else
- Console.WriteLine("You need to study!!!");
- }
- else
- Console.WriteLine("You are welcome to your 1st university dear {0}", a);
- Console.WriteLine("If you have any quessions ask me!!!");
- Console.ReadLine();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement