#include<iostream.h>
#include<conio.h>
#include<stdio.h>
int main()
{
system("color F4");
char str[30],vowel;
int i,a=0;
cout<<"enter the string:=";
gets(str);
cout<<"enter the vowel:=";
cin>>vowel;
for(i=0;str[i]!='\0';i++)
{
if(str[i]!=vowel)
{
str[a]=str[i];
a++;
}
}
str[a]='\0';
cout<<"\n the new string is:="<<str;
getch();
return 0 ;
}
- Blogger Comment
- Facebook Comment
Subscribe to:
Post Comments
(
Atom
)
0 comments:
Post a Comment