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