Wayfair interview question

Easy question

Interview Answer

Anonymous

Sep 19, 2019

$first = 0; $second = 1; $n = 20; echo $first.' , '; for($i=0; $i<$n-1;$i++){ $next = $first + $second; $first = $second; $second = $next; echo $next.' , '; }