Advertisement
Tanmoy12393

Untitled

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