• Write a program in C++ that input a string from the user and counts the number of vowels in the string? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

• Write a program in C++ that input a string from the user and counts the number of vowels in the string?

11th Jul 2018, 11:22 AM
Emran Afghan
Emran Afghan - avatar
4 Answers
+ 3
#include <iostream> int main(){ std::cout<< "Assignements CANNOT be delegated to others"<<std::endl; return 0; }
11th Jul 2018, 11:44 AM
KrOW
KrOW - avatar
+ 2
make an array of vowels, then iterate through the string and check if the current character exists in the vowel array there, now just to code it ;)
11th Jul 2018, 12:53 PM
hinanawi
hinanawi - avatar
+ 1
What language?
11th Jul 2018, 11:32 AM
James
James - avatar
+ 1
C++
11th Jul 2018, 11:36 AM
Emran Afghan
Emran Afghan - avatar