/* Slip no : 6_1 write prog to
accept string from user and delete all vowles from string and display the
result */
#include<string.h>
#include<conio.h>
#include<stdio.h>
int main()
{
char str[20];
int i;
printf("\n
Enter string : ");
gets(str);
for(i=0;str[i]!='\0';i++)
{
if(str[i]
!= 'a' && str[i] != 'e'
&& str[i] != 'i' && str[i] != 'o' && str[i] != 'u')
printf("%c",str[i]);
}
printf("\n");
getch();
}
No comments:
Post a Comment