- [tab]
- C++
#include<bits/stdc++.h> using namespace std; int main() { string s; cin>>s; queue<char> q; for(int i=0;i<s.length();++i) { char a=tolower(s[i]); if(a != 'a' && a !='e' && a !='i' && a!='o' && a!='u' && a!='y' ) { q.push(a); } } while(!q.empty()) { cout<<"."<<q.front(); q.pop(); } return 0; }
- Python 3
vowel = ['a','o','y','e','u','i'] s = '' string = str(input()) k = string.lower() for a in range(len(string)): if k[a] not in vowel: s+='.' s+=k[a] print(s)
- JAVA
//java 11 import java.util.*; public class srrcomputation { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); char a[] = s.toCharArray(); String p = ""; for(int i = 0 ; i<a.length;i++) { if(a[i]<97) { a[i] = (char)(a[i]+ 'a'-'A'); } if(a[i]=='a'||a[i]=='e'||a[i]=='i'||a[i]=='o'||a[i]=='u'||a[i]=='y') ; else p = p + "." + a[i]; } System.out.print(p); } }
3/Technology/post-list
/fa-clock-o/ WEEK TRENDING$type=list
-
1A. Theatre Square time limit per test: 1 second memory limit per test: 256 megabytes input: standard input output: standard...
-
A - Boy or Girl Problem Link : [Codeforces 236A##link##] [tab] C++ #include<bits/stdc++.h> using namespace std; int main() { stri...
-
B. Delete from the Left Problem Link: [Codeforces 1005B##link##] Solution : [tab] C++ #include<bits/stdc++.h> using namespac...
RECENT$type=blogging$m=0$cate=0$sn=0$rm=0$c=4$va=0
- Codeforces (53)
- Problem Solve (90)
- Programming Tricks (1)
- URI (37)
CATAGORIES$type=tab$date=0$au=0$c=5
- Problem Solve (90)
- Codeforces (53)
- URI (37)
- Programming Tricks (1)