Can any body help me to , | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can any body help me to ,

write a program in which user enter characters until character will be a vowel.if vowel came then stops giving characters and program will outputs all entered charactets except last vowel . for example, inputs: f d s r e output: f d s r

7th Dec 2017, 2:28 PM
Maria Waheed
Maria Waheed - avatar
2 Answers
+ 1
First you must define as a variable the vowels. Then with a loop you'll check if each character is a vowel or not. In order to check the characters you must separate them (split). This is the general idea!
7th Dec 2017, 4:07 PM
Elias Papachristos
Elias Papachristos - avatar
0
but with giving 2nd value, first value will be vanished.so how can i output all entered values(characters)
7th Dec 2017, 4:12 PM
Maria Waheed
Maria Waheed - avatar