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