Advertisement
EliteBot

CK_HW2_Prob1_Sign

Feb 17th, 2020
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.25 KB | None | 0 0
  1. #include<stdio.h>
  2. main()
  3. {
  4.     int a;
  5.     scanf("%d",&a);
  6.     if(a>0)
  7.     {
  8.         printf("Positive\n");
  9.     }
  10.     else if(a==0)
  11.     {
  12.         printf("Zero\n");
  13.     }
  14.     else
  15.     {
  16.         printf("Negative\n");
  17.     }
  18.    
  19.     return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement