Loading...
Is this your company?
Print even number between 0 to 100 without using any loops. How will you write your code.
Anonymous
Solution was very simple, use recurring function if you are not allowed to use loops
function f($val) { echo $val."<br>"; if($val < 100) f($val + 2); } f(0);
Check out your Company Bowl for anonymous work chats.
Get actionable career advice tailored to you by joining more bowls.
Stay ahead in opportunities and insider tips by following your dream companies.
Get personalised job recommendations and updates by starting your searches.