Created
June 6, 2019 06:28
-
-
Save lazycipher/a685c74a1527e40d644c51c408c16388 to your computer and use it in GitHub Desktop.
118A A String Codeforces Solution in C++
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
#include<string> | |
using namespace std; | |
int main(){ | |
string s1, s2; | |
cin>>s1; | |
for(int i=0; i<s1.length(); i++){ | |
if(s1[i]=='a' || s1[i]=='e' || s1[i]=='i' || s1[i]=='o' || s1[i]=='u' || s1[i]=='A' || s1[i]=='E' || s1[i]=='I' || s1[i]=='O' || s1[i]=='U' || s1[i]=='Y' || s1[i]=='y'){ | |
continue; | |
}else{ | |
s2+='.'; | |
s2+=tolower(s1[i]); | |
} | |
} | |
cout<<s2; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment