Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdio.h"
- #include "stdlib.h"
- main() {
- char letra;
- printf("Digite uma letra: ");
- scanf("%c", &letra);
- switch (letra) {
- case 'a':
- case 'A':
- case 'e':
- case 'E':
- case 'i':
- case 'I':
- case 'o':
- case 'O':
- case 'u':
- case 'U':
- printf("\n\n%c eh vogal\n", letra);
- break;
- default:
- printf("\n\n%c eh consoante\n", letra);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement