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