Q:

Write a PHP script which displays all the numbers between 200 and 250 that are divisible by 4

0

Write a PHP script which displays all the numbers between 200 and 250 that are divisible by 4.

Note : Do not use any PHP control statement

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

<?php
 echo implode(",",range(200,250,4))."\n";
?>

Sample Output:

200,204,208,212,216,220,224,228,232,236,240,244,248

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now