employer cover photo
employer logo
employer logo

3dplm Software Solution

Is this your company?

3dplm Software Solution Interview Question

Print even number between 0 to 100 without using any loops. How will you write your code.

Interview Answers

Anonymous

Sep 17, 2016

Solution was very simple, use recurring function if you are not allowed to use loops

Anonymous

Mar 30, 2018

function f($val) { echo $val."<br>"; if($val < 100) f($val + 2); } f(0);