Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int a;
- printf("Enter a number\n");
- scanf("%d",&a);
- if(a>0)
- {
- printf("%d is a positive number\n",a);
- }
- else if(a==0)
- {
- printf("non negative number\n",a);
- }
- else
- {
- printf("%d is a negative number\n",a);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement