Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Number100to200
- {
- class Program
- {
- static void Main(string[] args)
- {
- //double x = double.Parse(Console.ReadLine());
- //if (x <= 100)
- //{
- // Console.WriteLine("Less than 100");
- //}
- //else if (x >= 100 & x <= 200)
- //{
- // Console.WriteLine("Between 100 and 200");
- //}
- //else if (x > 200)
- //{
- // Console.WriteLine("Greater than 200");
- //}
- int n = int.Parse(Console.ReadLine());
- if (n <= 100)
- {
- Console.WriteLine("Less than 100");
- }
- else if (n >= 100 && n <= 200)
- {
- Console.WriteLine("Between 100 and 200");
- }
- else if(n > 200)
- {
- Console.WriteLine("Greater than 200");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement