+ 23
Challenge - Even or Odd number.
Make a program that takes a given number and let know to the user whether that number is even or not, but you can't use any condition nor loop statement like if-else, switch, ternary, while, do while, for, for-each. All languages are welcome. Any question or suggestion is welcome too. Have fun!
56 Answers
+ 28
@Fabio
๐ Great Challenge!! ๐๐๐๐๐
+ 25
@Fabio
Woohoo!!
๐๐๐๐Good One!! ๐
I'll do my best ๐๐
+ 22
๐ You thought without me ? ๐๐ค
https://code.sololearn.com/c3T0jxBbc1r7/?ref=app
+ 21
Fabio
Thank you very much, really ๐ I'm glad to participate! ๐
I'm sorry I'm late, I've been looking for a good solution and here it is. ๐ โ
I'm learning lambda expressions because LukArToDo makes me learn the functional interface! ๐๐ค๐ It will be all right.
I wish you luck and prosperity and of course Happy Coding!! ๐๐๐
You did a really great challenge, ๐ congratulations, ๐๐
you pushed me! ๐๐
+ 20
Here's another one!! ๐๐ค
for my 500 followers! ๐๐
Thanks a lot all of you ๐๐
https://code.sololearn.com/cMkxF6b9Q0yX/?ref=app
+ 19
https://code.sololearn.com/c4zvVseT6Jnt/?ref=app
+ 19
@Fabio
It is fixed now ๐
Thank you for nice challenge ๐
+ 19
yo buddy , will join soon
//little busy now , will be back after some hrs & make it โบ
+ 19
Fabio
You are welcome โบ mate!! ๐๐ค
We will learn together, slowly and do not worry, ๐๐ it is important that we do it and the results will come in time. ๐
LukArToDo is a magical man!! ๐๐๐๐๐ he has great knowledge and shared with us, encourages our work and progress. ๐ค๐
I am at your disposal and if I can help, feel free to address ๐๐
GoodLuck!! โบ
&&
HappyCoding!! ๐
+ 18
@Fabio
Oops, I didn't saw this conditions...sorry!
I will write solution according your conditions ๐
+ 12
https://code.sololearn.com/ckIUFWsSbmuq
+ 11
I used a try block to catch data input exceptions, not process the data. Hopefully, you don't mind that.
https://code.sololearn.com/ct7rShCHqIA6
+ 10
My Python solutions
https://code.sololearn.com/cFFVDxNWBaTq/#py
+ 10
Thanks to all of you guys for trying this challenge and solve it.
I had a lot of fun reading and testing your codes, i learned something new as well. ๐๐
This was my solution... It even works with floating values.
btw// i don't know which to chose for best answer, since there was some amazing codes.
Keep coding! ๐๐โ๐๐
https://code.sololearn.com/c0WLC9sL4BZY/?ref=app
+ 10
https://code.sololearn.com/cQy92jnbR3KZ/?ref=app