#include <stdio.h>
#include<string.h>
int main()
{
char str[100];
int i;
gets(str); // fgets(str,100,stdin);
for(i=0;str[i]!='\0';i++)
{
if(str[i]!='U'&&str[i]!='O'&&str[i]!='I'&&str[i]!='E'&&str[i]!='A'&&str[i]!='a'&&str[i]!='e'&&str[i]!='o'&&str[i]!='i'&&str[i]!='u')
{
printf("%c",str[i]);
}
}
getchar();
}
#include<string.h>
int main()
{
char str[100];
int i;
gets(str); // fgets(str,100,stdin);
for(i=0;str[i]!='\0';i++)
{
if(str[i]!='U'&&str[i]!='O'&&str[i]!='I'&&str[i]!='E'&&str[i]!='A'&&str[i]!='a'&&str[i]!='e'&&str[i]!='o'&&str[i]!='i'&&str[i]!='u')
{
printf("%c",str[i]);
}
}
getchar();
}
input:
good morning
output:
gd mrnng
No comments:
Post a Comment