Program To Remove Vovels C++

 #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 ;
}
SHARE

Milan Tomic

Hi. I’m Designer of Blog Magic. I’m CEO/Founder of ThemeXpose. I’m Creative Art Director, Web Designer, UI/UX Designer, Interaction Designer, Industrial Designer, Web Developer, Business Enthusiast, StartUp Enthusiast, Speaker, Writer and Photographer. Inspired to make things looks better.

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment