šŸ…æChallengešŸ…æ Replace Vowels With Consonants.šŸš¶The objective of your code is to replace each vowel with a fellow consonant. | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 11

šŸ…æChallengešŸ…æ Replace Vowels With Consonants.šŸš¶The objective of your code is to replace each vowel with a fellow consonant.

Your code is to receive a string and replace the vowels, such that : šŸ“If the vowel is the first vowel, then replace it with the first consonant. And if the vowel is the second vowel replace it with the second consonant and so on.. šŸ“Example: Input=Example; Output= xxmmplp. Input=Length; Output=Llngth. šŸš©Note, if the consonants are fewer than the vowels, then continue replacing the vowels from the beginning. Example : Input=AudioAaron;Output=drdndrnrdn. šŸš„Notify the user, if there isn't any vowel.

26th Dec 2017, 10:12 PM
Justine Ogaraku
Justine Ogaraku - avatar
5 Respostas
+ 8
Nice challenge, thank you. Here's my try : https://code.sololearn.com/cBLs6jfPNR1X/?ref=app
26th Dec 2017, 11:19 PM
LukArToDo
LukArToDo - avatar
26th Dec 2017, 10:13 PM
Justine Ogaraku
Justine Ogaraku - avatar
+ 6
My try in Java. Sorry but I'm new in this language. šŸ˜ƒ https://code.sololearn.com/co7vgU3Hlu3d/?ref=app
27th Dec 2017, 7:00 PM
Marfik Em
Marfik Em - avatar
+ 5
Here's mine in C. Sorry but code does'nt work if consonents are not sufficient enough to replace all vowels. I'll complete the code when I get the logic:) Plz suggest me if u can https://code.sololearn.com/c6pCVoNgJP74/?ref=app
28th Dec 2017, 5:21 PM
Infinity
Infinity - avatar
27th Dec 2017, 3:31 PM
Ravi Chandra Enaganti
Ravi Chandra Enaganti - avatar