Anyone knows a simple code on how to separate consonant and vowel words on a string?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Anyone knows a simple code on how to separate consonant and vowel words on a string??

Anyone knows a simple code on how to separate consonant and vowel words on a string??

13th Sep 2018, 1:21 PM
Kari Gakure
Kari Gakure - avatar
1 Answer
+ 1
Kari Gakure consider a string as input... loop through all characters of string.. if it is vowel , append character into string of vowel or else append character into string of consonant.. hih, ketan
13th Sep 2018, 3:33 PM
Ketan Lalcheta
Ketan Lalcheta - avatar