Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- void checkNum(n)
- {
- if(n>0)
- {
- printf("Positive.");
- }
- else if(n<0)
- {
- printf("Negative.");
- }
- else
- {
- printf("Zero.");
- }
- }
- int main()
- {
- int n;
- scanf("%d", &n);
- checkNum(n);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement