Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2020
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Number100to200
  4. {
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. //double x = double.Parse(Console.ReadLine());
  10.  
  11. //if (x <= 100)
  12. //{
  13. // Console.WriteLine("Less than 100");
  14. //}
  15. //else if (x >= 100 & x <= 200)
  16. //{
  17. // Console.WriteLine("Between 100 and 200");
  18. //}
  19. //else if (x > 200)
  20. //{
  21. // Console.WriteLine("Greater than 200");
  22. //}
  23. int n = int.Parse(Console.ReadLine());
  24. if (n <= 100)
  25. {
  26. Console.WriteLine("Less than 100");
  27. }
  28. else if (n >= 100 && n <= 200)
  29. {
  30. Console.WriteLine("Between 100 and 200");
  31. }
  32. else if(n > 200)
  33. {
  34. Console.WriteLine("Greater than 200");
  35. }
  36. }
  37. }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement