Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <locale.h>
- int main(){
- setlocale(LC_ALL, "PORTUGUESE");
- int user_op;
- printf("Cardápio\n");
- printf("\t1 - Hamburguer\n");
- printf("\t2 - Cheeseburguer\n");
- printf("\t3 - Fritas\n");
- printf("\t4 - Refrigerante\n");
- printf("Entre com um numero: ");
- scanf("%i", &user_op);
- switch(user_op){
- case 1:
- printf("Voce escolheu hamburguer!\n");
- break;
- case 2:
- printf("Voce escolheu Cheeseburguer!\n");
- break;
- case 3:
- printf("Voce escolheu Fritas!\n");
- break;
- case 4:
- printf("Voce escolheu Refrigerante!\n");
- break;
- default:
- printf("Voce não escolheu nenhuma opção valida!\n");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement