Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- char choice;
- printf("Please enter your choice a)Burger OR b)Sandwich OR c)Juice\n\t\t\t\t");
- scanf("%c",&choice);
- if(choice<97){choice=choice+32;}
- switch(choice)
- {
- case 'a':
- printf("\tYou have chosen Burger, Thank you.");
- break;
- case 'b':
- printf("\tYou have chosen Sandwich, Thank you.");
- break;
- case 'c':
- printf("\tYou have chosen Juice, Thank you.");
- break;
- case 'z':
- printf("\tYou have chosen 10, it is a HIDDEN MEAL, Thank you.");
- break;
- default:
- printf("\tYou did not order any of the above three, NO Thank you.");
- break;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement