+ 1

php how do code a program to print numbers from 1-50 that are not divisible to 5 and 7?

Php

27th May 2018, 4:10 PM
Mustafa Samadi
Mustafa Samadi - avatar
2 Answers
+ 4
for($i=1;$i<51;$i++){ if($i%5==0||$i%7==0) continue; echo($i); }
27th May 2018, 4:18 PM
᠌᠌Code X
᠌᠌Code X - avatar
+ 1
appreciated 👍
27th May 2018, 4:40 PM
Mustafa Samadi
Mustafa Samadi - avatar