Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <ctype.h>
  3. #include <stdlib.h>
  4.  
  5. void mayus(char* vocales){
  6. for(int i; i < 50; i++){
  7. if(vocales[i] == '\0'){
  8. break;
  9. }
  10. if (vocales[i] == 'a' || vocales[i] == 'e' || vocales[i] == 'i' || vocales[i]== 'o' || vocales[i] =='u'){
  11. vocales[i] = toupper(vocales[i]);
  12. printf("%c", vocales[i]);
  13. }else {
  14. printf("%c", vocales[i]);
  15. }
  16. }
  17. }
  18.  
  19. int main(){
  20. char vocales[50];
  21. gets(vocales);
  22. mayus(vocales);
  23.  
  24. return 0;
  25.  
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement