fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. string s;
  6. cin>>s;
  7. string capalpha="ABCDEFGHIJKLMNOPQRSTUVWXYZ";
  8. string vowels="aoyeui";
  9. int a=0;
  10. for(int j=1;j<=26;j++){
  11. for(int i=0;i<=s.size()-1;i++){
  12. if(s[i]==capalpha[a]){s[i]+=32;}}
  13. a++;
  14. }
  15. a=0;
  16. int c=0;
  17. for(int j=1;j<=26;j++){
  18. for(int i=0;i<=vowels.size()-1;i++){
  19. if(s[i]==vowels[a]){s[i]=0;
  20. c++;
  21. }}
  22. a++;
  23. }
  24. a=0;
  25. for(int j=0;j<s.size();j++){
  26. if(s[j]!=0){cout<<"."<<s[j];}
  27. }
  28. return 0;
  29. }
Success #stdin #stdout 0s 4508KB
stdin
ktajqhpqsvhw


stdout
.t.j.q.h.p.q.s.v.h.w