Kawsar_Hossain

problem_3

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