+ 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!

20th Mar 2018, 4:42 PM
Fabio
59 Answers
21st Mar 2018, 10:24 AM
Mr.Curious
Mr.Curious - avatar
+ 28
@Fabio ๐Ÿ Great Challenge!! ๐Ÿ๐Ÿ˜€๐Ÿ‘๐Ÿ‘๐Ÿ‘
20th Mar 2018, 5:59 PM
Danijel Ivanoviฤ‡
Danijel Ivanoviฤ‡ - avatar
+ 25
@Fabio Woohoo!! ๐Ÿ˜€๐Ÿ˜‚๐Ÿ˜‚๐Ÿ‘Good One!! ๐Ÿ˜† I'll do my best ๐Ÿ‘๐Ÿ˜‰
20th Mar 2018, 6:46 PM
Danijel Ivanoviฤ‡
Danijel Ivanoviฤ‡ - avatar
+ 22
๐Ÿ˜ You thought without me ? ๐Ÿ˜„๐Ÿค˜ https://code.sololearn.com/c3T0jxBbc1r7/?ref=app
31st Mar 2018, 6:21 AM
Danijel Ivanoviฤ‡
Danijel Ivanoviฤ‡ - avatar
+ 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! ๐Ÿ˜„๐Ÿ‘
31st Mar 2018, 12:41 PM
Danijel Ivanoviฤ‡
Danijel Ivanoviฤ‡ - avatar
+ 20
Here's another one!! ๐Ÿ˜„๐Ÿค˜ for my 500 followers! ๐Ÿ˜†๐Ÿ‘ Thanks a lot all of you ๐Ÿ˜‰๐Ÿ‘ https://code.sololearn.com/cMkxF6b9Q0yX/?ref=app
6th Apr 2018, 8:53 AM
Danijel Ivanoviฤ‡
Danijel Ivanoviฤ‡ - avatar
+ 19
https://code.sololearn.com/c4zvVseT6Jnt/?ref=app
20th Mar 2018, 5:30 PM
LukArToDo
LukArToDo - avatar
+ 19
@Fabio It is fixed now ๐Ÿ˜‰ Thank you for nice challenge ๐Ÿ‘
20th Mar 2018, 6:05 PM
LukArToDo
LukArToDo - avatar
20th Mar 2018, 9:47 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 19
yo buddy , will join soon //little busy now , will be back after some hrs & make it โ˜บ
21st Mar 2018, 3:19 AM
Gaurav Agrawal
Gaurav Agrawal - avatar
21st Mar 2018, 9:42 AM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 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!! ๐Ÿ‘
31st Mar 2018, 6:47 PM
Danijel Ivanoviฤ‡
Danijel Ivanoviฤ‡ - avatar
22nd Jun 2018, 8:44 PM
Danijel Ivanoviฤ‡
Danijel Ivanoviฤ‡ - avatar
+ 18
@Fabio Oops, I didn't saw this conditions...sorry! I will write solution according your conditions ๐Ÿ˜‰
20th Mar 2018, 5:48 PM
LukArToDo
LukArToDo - avatar
26th Mar 2018, 12:18 AM
David Ashton
David Ashton - avatar
+ 12
https://code.sololearn.com/ckIUFWsSbmuq
20th Mar 2018, 6:30 PM
Baraa AB
Baraa AB - avatar
+ 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
20th Mar 2018, 5:05 PM
John Wells
John Wells - avatar
20th Mar 2018, 8:56 PM
Cรฉpagrave
Cรฉpagrave - avatar
+ 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
21st Mar 2018, 7:26 PM
Fabio
+ 10
https://code.sololearn.com/cQy92jnbR3KZ/?ref=app
22nd Mar 2018, 2:52 AM
Muhd Khairul Amirin
Muhd Khairul Amirin - avatar