Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstring>
  3. using namespace std;
  4. bool vocala(char x)
  5. {
  6. if(x=='a'|| x=='e' || x=='i' || x=='o' || x=='u')
  7. return 1;
  8. return 0;
  9. }
  10. int main()
  11. {
  12. char s[256];
  13. int i,n;
  14. cin.getline(s,256);
  15. n=strlen(s);
  16. for(i=0; i<n;i++)
  17. if(vocala(s[i]))
  18. s[i]=toupper(s[i]);
  19. cout<<s;
  20. return 0;
  21.  
  22. return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement