A php code to join multiples of 3 and multiples of 5

Report
Question

Please briefly explain why you feel this question should be reported .

Report
Cancel

<body>
<?php
for ($i=1; $i<51; $i++) {
echo”<br>”;
echo”The number is “. $i;
echo”<br>”;

}

for ($i=1; $i<51; $i++) {
echo”<br>”;
$num = ($i%5);
if($num==0){
echo ” multiple of 5 is= “.$i;
}
}
for ($i=1; $i<51; $i++) {
echo”<br>”;
$num = ($i%3);
if($num==0){
echo ” multiple of 3 is= “.$i;
}
}
echo ” multiple of 5 is= “.$i. ” multiple of 3 is= “.$i;;
?>

in progress 0
PHP 1 month 1 Answer 102 views 0

About olohimai

Answer ( 1 )

  1. ritwik

    Please briefly explain why you feel this answer should be reported .

    Report
    Cancel

    You want that at each step or only at the end?

Leave an answer

Browse

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>