- [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
-
A. Team Problem Link : [Codeforces 231A##link##] [tab] C++ #include <bits/stdc++.h> using namespace std; int main(){ int n; ...
-
A - Helpful Maths Problem Link : [Codeforces 339A##link##] [tab] C++ #include<iostream> #include<algorithm> using namespace...
-
A. Young Physicist time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output ...
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)