Algorithm
Code Examples
#1 Code Example with C++ Programming
Code -
C++ Programming
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define endl '\n'
#define debug(n) cout<<(n)<<endl;
const ll INF = 2e18 + 99;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(NULL);
string s, r = "";
cin>>s;
transform(s.begin(), s.end(), s.begin(), ::tolower);
for(auto i : s){
if( i == 'a' || i == 'e' || i == 'i' || i == 'o' || i == 'y' || i == 'u'){
continue;
}
else{
r += ".";
r += i;
}
}
cout<<r<<endl;
}
Copy The Code &
Try With Live Editor
Input
tour
Output
.t.r
Demonstration
Codeforcess solution 118-A A. String Task C++, Java, Js and Python,118-A,Codeforcess solution