Advertisement
KirillKorobka

Untitled

Nov 13th, 2019
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. using System;
  2.  
  3. namespace itvdnCourse
  4. {
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. int a = 21;
  10. int b = 33;
  11. int c = 5;
  12.  
  13. Console.WriteLine("Enter number:");
  14. a = int.Parse(Console.ReadLine());
  15. b = int.Parse(Console.ReadLine());
  16. c = int.Parse(Console.ReadLine());
  17.  
  18. if (a > c && a < b)
  19. {
  20. Console.WriteLine(21);
  21. }
  22.  
  23. if (b > c && a < b)
  24. {
  25. Console.WriteLine(33);
  26. }
  27.  
  28. if (b < c && a > b)
  29. {
  30. Console.WriteLine(5);
  31. }
  32. else
  33. {
  34. Console.WriteLine(5);
  35. }
  36. Console.WriteLine("33 more of them");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement