Advertisement
mujahidul_islam

Problem 3

May 26th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.23 KB | None | 0 0
  1.  
  2. #include<stdio.h>
  3. int main ()
  4. {
  5.     int a;
  6.     scanf("%d",&a);
  7.     if (a>0){
  8.         printf("a is positive");
  9.     }
  10.     else if (a<0){
  11.         printf("a is negative");
  12.     }
  13.     else printf("a is zero");
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement