<?php function odd ($x) { return ($x % 2 === 1)+0; }; $cnt = 0; foreach (range(1,1000) as $x) { $cnt += odd($x); }
You have javascript disabled. You will not be able to edit any code.