- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStringTask.cpp
More file actions
Latest commit
24 lines (23 loc) · 468 Bytes
/
Copy pathStringTask.cpp
File metadata and controls
24 lines (23 loc) · 468 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include<iostream>
#include<string>
usingnamespacestd;
intmain() {
#ifndef ONLINE_JUDGE
freopen("input.txt","r",stdin);
freopen("output.txt","w",stdout);
#endif
string s,s2;
cin>>s;
int len=s.length();
for(int i=0;i<len;i++){
if(s[i]=='a'||s[i]=='e'||s[i]=='i'||s[i]=='o'||s[i]=='u'||s[i]=='y'||s[i]=='A'||s[i]=='E'||s[i]=='O'||s[i]=='I'||s[i]=='U'||s[i]=='Y')
continue;
else
{
s2+='.';
s2+=tolower(s[i]);
}
}
cout<<s2;
return0;
}