- #include<iostream>
- #include<bits/stdc++.h>
- using namespace std;
- int main(){
- int i;
- char ch[100];
- cin>>ch;
- int size=std::strlen(ch);
- ////cout<<size<<endl;
- for(i=0;i<size;i++)
- {
- if(ch[i]=='a' ||ch[i]=='e' ||ch[i]=='i' ||ch[i]=='o' ||ch[i]=='u' ||ch[i]=='y' ||ch[i]=='A' ||ch[i]=='E' ||ch[i]=='I' ||ch[i]=='O' ||ch[i]=='U' ||ch[i]=='Y')
- continue;
- cout<<".";
- if(ch[i]>='A' && ch[i]<='Z')
- cout<<(char)tolower(ch[i]);
- else cout<<ch[i];
- }
- return 0;
- }
Monday, April 27, 2020
118A. String Task Solution
Subscribe to:
Post Comments (Atom)
Aptitude test assistant programmer 2018
#include <stdio.h> #include <stdlib.h> int main() { char str[100]; int i; int space=0; printf("Enter a string\n")...
-
104A - Blackjack #include < bits / stdc ++. h > using namespace std ; int main (){ int n ; cin >> n ; int d = n - 10 ; ...
-
A. YES or YES? There is a string s � of length 3 3 , consisting of uppercase and lowercase English letters. Check if it is equal to &qu...
-
#include <iostream> using namespace std ; int main () { int n ; int q = 2 ; int c = 0 ; cin >> n ; if ( n % 2 == ...
No comments:
Post a Comment