VelizarAvramov

05. Invalid Number

Mar 21st, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.61 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace invalidNumber
  8. {
  9.     class invalidNumber
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             var num = int.Parse(Console.ReadLine());
  14.  
  15.             if ((num >= 100) && (num <= 200))
  16.             {
  17.                 Console.WriteLine();
  18.             }
  19.             else if (num == 0)
  20.             {
  21.                 Console.WriteLine();
  22.             }
  23.             else
  24.             {
  25.                 Console.WriteLine("invalid");
  26.             }
  27.         }
  28.     }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment