1.1.png
1.2.png
#include<iostream>
#include<string.h>
using namespace std;
int main()
{
char a[101];
cin >> a;
int j = strlen(a);
for (int i = 0; i < j; i++)
{
if (a[i] >= 65 && a[i] <= 90)
a[i] = a[i] + 32;
if (a[i] != 65 && a[i] != 97 && a[i] != 69 && a[i] != 101 && a[i] != 73 && a[i] != 105 && a[i] != 79 && a[i] != 111 && a[i] != 85 && a[i] != 117 && a[i] != 89 && a[i] != 121)
cout << '.' << a[i];
}
return 0;
}
input
Enter a line character.
output
Characters that do not contain vowels, enter a period between each consonant and change the uppercase consonant to lowercase consonant
Sample Input
AmijriqwB
Sample Output
.m.j.r.q.w.b .