delete vowel from sentence
// to delete vowel from sentence
#include<stdio.h>
#include<string.h>
int main()
{
int i, l=0;
char a[100];
printf("enter the string\n");
gets(a);
for(i=0; a[i]!='\0'; i++)
{
if (a[i]=='a'||a[i]=='A'||a[i]=='e'||a[i]=='E'||a[i]=='i'||a[i]=='I'||a[i]=='o'||a[i]=='O'||a[i]=='u'||a[i]=='U')
{
printf("");
}
else
{
printf("%c", a[i]);
}
}
return 0;
}
Comments
Post a Comment