Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- char a,b;
- printf("Entre com as iniciais de seu nome e sobrenome :\n"); scanf("%c %c",&a,&b);
- if (((a=='a')||(a=='e')||(a=='i')||(a=='o')||(a=='u'))&&((b=='a')||(b=='e')||(b=='i')||(b=='o')||(b=='u')))
- {
- printf("Duas vogais!\n");
- return 0;
- }
- else if (((a!='a')&&(a!='e')&&(a!='i')&&(a!='o')&&(a!='u'))&&((b!='a')&&(b!='e')&&(b!='i')&&(b!='o')&&(b!='u')))
- {
- printf("Duas consoantes!\n");
- return 0;
- }
- else
- {
- printf("Uma vogal e uma consoante!\n");
- return 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment