Guest User

Untitled

a guest
Sep 19th, 2019
91
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. static void Main(string[] args)
  2. {
  3. Console.WriteLine("Enter your name#");
  4. string a;
  5. a=Console.ReadLine();
  6. Console.WriteLine("Hello {0}", a);
  7. Console.WriteLine("How many years did you study?");
  8. int b;
  9. b=int.Parse(Console.ReadLine());
  10. if(b>=10)
  11. {
  12. Console.WriteLine("Your study period is normal ");
  13. }
  14. else if (b>12){
  15. Console.WriteLine("Your study period is good");
  16. }
  17. Console.WriteLine("Did you study at the university! Y/N");
  18. string x;
  19. x=Console.ReadLine();
  20. if (x == "Y")
  21. {
  22. Console.WriteLine("Did you study programming! Y/N");
  23. string q;
  24. q = Console.ReadLine();
  25. if (q == "Y")
  26. {
  27. Console.WriteLine("You can be best student#");
  28. }
  29. else
  30. Console.WriteLine("You need to study!!!");
  31. }
  32. else
  33. Console.WriteLine("You are welcome to your 1st university dear {0}", a);
  34. Console.WriteLine("If you have any quessions ask me!!!");
  35. Console.ReadLine();
  36. }
RAW Paste Data