Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int input;
- printf(“Enter an INTEGER. Then press enter”);
- scanf(“%d”,&input);
- switch(input)
- {
- case 0:
- case 1:
- case 2:
- case 3:
- case 4:
- case 5:
- case 6:
- case 7:
- case 8:
- case 9:
- printf(“The input is between 0 - 9”);
- break;
- default:
- printf(“not between 0-9”);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement