bacco

Число от 100 до 200

Jan 20th, 2018
188
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 tESt
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.  
  10.             var num = int.Parse(Console.ReadLine());
  11.  
  12.  
  13.             if ( num < 100)
  14.             {
  15.                 Console.WriteLine("Less than 100");
  16.             }
  17.  
  18.             else if ( num <= 200)
  19.             {
  20.                 Console.WriteLine("Between 100 and 200");
  21.             }
  22.  
  23.                 else
  24.             {
  25.                 Console.WriteLine("Greater than 200");
  26.             }
  27.  
  28.  
  29.         }
  30.  
  31.  
  32.     }
  33.    
  34. }
Advertisement
Add Comment
Please, Sign In to add comment