Trending This Week:

test

Post Top Ad

Thursday, June 23, 2022

Cpp program to Remove Vovel from a String

         







Cpp program to Remove Vovel from a String.

python
#include <iostream> using namespace std; int main () { string str; cout<<"Enter String :"; getline(cin,str); for(int i=0;i<str.length();i++) { if(str[i]=='a' || str[i]=='A') continue; else if(str[i]=='e' || str[i]=='E') continue; else if(str[i]=='i' || str[i]=='I') continue; else if(str[i]=='o' || str[i]=='O') continue; else if(str[i]=='u' || str[i]=='U') continue; else cout<<str[i]; } return 0; }

Output :

Enter String : I Love Teach Codeing
Lv Tch Cdng


Hash Tags:

#CPP #Calculation #SumOfTwoNumbers #Plus #Programming #coding #Addition #Code #SourceCode #java #CLanguage #Python #Logical #Maths #pattern




No comments:

Post a Comment

Post Top Ad