Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdio.h"
- int main(){
- char resp;
- printf("Digite (S)im ou (N)ao");
- scanf("%c", &resp);
- switch(resp){
- case 'S':
- case 's':
- printf("Voce respondeu SIM");
- break;
- case 'N':
- case 'n':
- printf("Voce respondeu NÃO");
- break;
- default:
- printf("Voce respondeu incorretamente!");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement