Advertisement
Guest User

Untitled

a guest
Nov 12th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 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. 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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement