SHARE
TWEET

Untitled

a guest Nov 12th, 2019 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. class Programm
  8. {
  9.     static void Main(string[] args)
  10.     {
  11.         Console.WriteLine("Enter number: ");
  12.         int a = Int32.Parse(Console.ReadLine());
  13.  
  14.         if(a > 0 && a < 100)
  15.         {
  16.             Console.WriteLine("Number is positive!");
  17.         }
  18.         else
  19.         {
  20.             if (a == 0)
  21.             {
  22.                 Console.WriteLine("Zero!");
  23.             }
  24.             else
  25.             {
  26.                 Console.WriteLine("Number is negative!");
  27.             }
  28.         }
  29.  
  30.         Console.WriteLine("End of the programm");
  31.  
  32.     }
  33. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top