+ 9
[Challenge] Print only vowels
For example, Input: example Output: eae better if u do it in 1 line of code Any language is welcome! code example: https://code.sololearn.com/WZCEtQbQUKBK/?ref=app ps.This is my first challenge
18 odpowiedzi
+ 17
+ 14
https://code.sololearn.com/cQJ1LIVU6NdQ/?ref=app
+ 5
JavaScript:
var a = prompt('Enter string:');
alert(a.replace(/[^aeiou]+/gi,''));
+ 5
lang : CPP
Here's mine :
https://code.sololearn.com/cwjnCcS5Lyti/#cpp
But IK this is a really big code, but don't worry I will code this in a single line xD
+ 5
Only Vowels (one-liner) in js.
https://code.sololearn.com/WET4221ms3vn/?ref=app
+ 4
Python:
print("".join([e for e in input() if e.lower() in "aeiou"]))
+ 4
Nice Witty Phantom
+ 4
Do you like mine? @N3KO
+ 4
thx
+ 3
My JS solution :D
ez pz 🙌
https://code.sololearn.com/WJzmFv8N7Ekj/?ref=app
+ 3
Nice Niawahta
+ 2
yup @Maneesh Pradeep
+ 2
Here you go.
https://code.sololearn.com/cd5KDEO0iOqR/?ref=app
+ 1
In Ruby - a one-liner outputting both original and edited word:
puts (input = gets.chomp) + " => " + input.gsub(/[^aeiou]/,"")
+ 1
here's my solution
https://code.sololearn.com/cvpVUTb0ZE0t/?ref=app