Advertisement
Guest User

Коразон

a guest
Jun 19th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 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 z2
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13.  
  14. Console.WriteLine("Привет! Как тебя зовут?");
  15. string a = Console.ReadLine();
  16. Console.WriteLine("Привет " + a + "! " + "Сколько тебе лет?");
  17. int b = Convert.ToInt32(Console.ReadLine());
  18.  
  19. if (b >= 18)
  20. {
  21. Console.WriteLine("Замечательно! Ты ходишь в школу?");
  22. string c = Console.ReadLine();
  23. if (c == "Нет" || c == "нет")
  24. {
  25. Console.WriteLine("Сентябрь гориииит..." + "\n" + "1)Убийца плачет" + "\n" + "2)Птица парит" + "\n" + "3)Что это вообще такое?");
  26. int d = Convert.ToInt32(Console.ReadLine());
  27. if (d == 1)
  28. {
  29. Console.WriteLine("Блеск! Ты прошёл мой тест.");
  30. }
  31. else
  32. {
  33. Console.WriteLine("Обманщик!");
  34. }
  35.  
  36. }
  37. else
  38. {
  39. Console.WriteLine( "Обманщик! Тебе нет 18!");
  40. }
  41. }
  42. else
  43. {
  44. Console.WriteLine("Извини, но тебе закрыт доступ к программе");
  45. }
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54. }
  55.  
  56.  
  57. }
  58. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement