Advertisement
Kawsar_Hossain

Problem-3

Jun 29th, 2019
131
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 check_value(int a)
  3. {
  4.     return (a>0);
  5. }
  6. int main()
  7. {
  8.     int a;
  9.     scanf("%d", &a);
  10.     if(check_value(a))
  11.         printf("Positive");
  12.     else if(a==0)
  13.         printf("Zero");
  14.         else
  15.             printf("Negative");
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement