nvnnaidenov

BetweenNumbers - School Book 3.0

Jul 28th, 2021
856
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2.  
  3. class BetweenNumbers
  4. {
  5.     static void Main()
  6.     {
  7.         int number = int.Parse(Console.ReadLine());
  8.  
  9.         if(number < 100)
  10.         {
  11.             Console.WriteLine("Less than 100");
  12.         }
  13.         else if(number >= 100 && number <= 200)
  14.         {
  15.             Console.WriteLine("Between 100 and 200");
  16.         }
  17.         else if(number > 200)
  18.         {
  19.             Console.WriteLine("Greater than 200");
  20.         }
  21.     }
  22. }
RAW Paste Data