Advertisement
tsvetelinapasheva

TsvetelinaPasheva/ConditionalStatementsLab/04.Number100To200

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