Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- char m;
- printf("Enter your character: ");
- scanf("%s",&m);
- switch(m)
- {
- case 'A':
- printf("Input is A");
- break;
- case 'B':
- printf("Input is B");
- break;
- case 'C':
- printf("Input is C");
- break;
- case 'D':
- printf("Input is D");
- break;
- default:
- printf("Your input is not from A to D");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement