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:");
- scanf("%d", &a);
- if(a>0){
- printf("Positive");
- }
- else if(a<0){
- printf("Negative");
- }
- else if(a == 0){
- printf("The number is zero");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement