#include<stdio.h>
#include<conio.h>
#include<string.h>
main()
{
char ch[25];
int i,size;
clrscr();
printf("\n\n\tInput a string : ");
gets(ch);
size=strlen(ch);
for(i=0;i<size;i++)
{
if(ch[i]==65 || ch[i]==69 || ch[i]==73 || ch[i]==79 ||
ch[i]==85 || ch[i]==97 || ch[i]==101 || ch[i]==105 ||
ch[i]==111 || ch[i]==117)
ch[i]=' ';
}
printf("\n\tAfter Deleting the only vowels \n\n\t");
puts(ch);
getch();
}
0 comments: (+add yours?)
Post a Comment