Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <ctype.h>
- #include <stdlib.h>
- void mayus(char* vocales){
- for(int i; i < 50; i++){
- if(vocales[i] == '\0'){
- break;
- }
- if (vocales[i] == 'a' || vocales[i] == 'e' || vocales[i] == 'i' || vocales[i]== 'o' || vocales[i] =='u'){
- vocales[i] = toupper(vocales[i]);
- printf("%c", vocales[i]);
- }else {
- printf("%c", vocales[i]);
- }
- }
- }
- int main(){
- char vocales[50];
- gets(vocales);
- mayus(vocales);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement