Advertisement
Guest User

Numbers

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