desislava_topuzakova

5. Число от 100 до 200

Nov 20th, 2021
737
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.68 KB | None | 0 0
  1. using System;
  2.  
  3. namespace _05._Number_100_to_200
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             int number = int.Parse(Console.ReadLine());
  10.             // < 100 -> Less than 100
  11.             // <= 200 -> Between 100 and 200
  12.             // > 200 -> Greater than 200
  13.             if (number < 100)
  14.             {
  15.                 Console.WriteLine("Less than 100");
  16.             }
  17.             else if (number <= 200)
  18.             {
  19.                 Console.WriteLine("Between 100 and 200");
  20.             }
  21.             else if (number > 200)
  22.             {
  23.                 Console.WriteLine("Greater than 200");
  24.             }
  25.         }
  26.     }
  27. }
  28.  
Advertisement
Add Comment
Please, Sign In to add comment