karlangadas

String Task

Dec 27th, 2016
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstdio>
  3. #include <string>
  4. #include <cstring>
  5. using namespace std;
  6.  
  7. int main() {
  8.     char c;
  9.     while(cin>>c){
  10.         c=tolower(c);
  11.         if ((c!='a')&&(c!='e')&&(c!='i')&&(c!='o')&&(c!='u')&&(c!='y'))
  12.             printf(".%c",c);
  13.     }
  14.     printf("\n");
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment