7-7 String modification (15 points)
Delete the vowels in the given string, and at the same time change the consonants to lowercase, and add a "." in front. The vowels are "A", "O", "Y", "E", "U",
"I" (not case sensitive)
Input format:
Enter a string
Output format:
Output the modified string as required
Input sample:
Here is a set of inputs. E.g:
tOur
Sample output:
The corresponding output is given here. E.g:
.t.r
#include<stdio.h>
int main()
{
char a[1000];
int i=0;
scanf("%s",a);
while(a[i])
{
if(!(a[i]=='A'||a[i]=='O'||a[i]=='Y'||a[i]=='E'||a[i]=='U'||a[i]=='I'||a[i]=='a'||a[i]=='o'||a[i]=='y'||a[i]=='e'||a[i]=='u'||a[i]=='i'))
{
if(a[i]<='Z'&&a[i]>='A')
{
printf(".%c",a[i]+32);
}
else printf(".%c",a[i]);
}
i++;
}
}