Advertisement
Guest User

Jews don't have souls

a guest
May 22nd, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. using System;
  2. namespace ChatBot
  3. {
  4. class Program
  5. {
  6. static void Main(string[] args)
  7. {
  8.  
  9. bool exit = false;
  10. while (exit == false)
  11. {
  12.  
  13. Console.Write("What is your name? ");
  14. string name = Console.ReadLine();
  15. Console.Write("Hello there, " + name + ", How old are you? ");
  16. int age = Convert.ToInt32(Console.ReadLine());
  17. Console.Write("So you are " + name + " and you are " + age + " years old, correct? ");
  18. string verify = Console.ReadLine();
  19.  
  20. if (verify == "Y")
  21. {Console.Write("How can I help you " + name, "?");
  22. string task = Console.ReadLine();
  23. Console.WriteLine("No");
  24. exit = true;
  25. }
  26. else if (verify == "N")
  27. { }
  28. else if (verify == "Yes")
  29. {
  30. Console.Write("How can I help you " + name, "?");
  31. string task = Console.ReadLine();
  32. Console.WriteLine("No");
  33. exit = true;
  34. }
  35. if (exit == true)
  36. { Console.WriteLine("Have a good day"); }
  37.  
  38.  
  39. }
  40.  
  41. }
  42. }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement