Advertisement
Guest User

Untitled

a guest
Dec 6th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Alex
  4. {
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. int a, b, c;
  10. Console.Write("Enter A: ");
  11. a = Int32.Parse(Console.ReadLine());
  12. Console.Write("Enter B: ");
  13. b = Int32.Parse(Console.ReadLine());
  14. Console.Write("Enter C: ");
  15. c = Int32.Parse(Console.ReadLine());
  16.  
  17. if (a < b && b < c || c < b && b < a)
  18. {
  19. Console.WriteLine("True.");
  20. }
  21. else
  22. {
  23. Console.WriteLine("False");
  24. }
  25. }
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement