+ 1
[DUPLICATE] Create a function in php for even and odd!
The challenge is we cannot use any arithmetic operator, we cannot use any conditional statement and we cannot use any looping statements.
6 Answers
+ 1
Isnt this same as if else statement? Will it be acceptable for an interview point of view?
0
Cant use if else too. Its out of curiosity, somebody asked me in an interview.
0
Thanks for the reply.