亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

Looking for a PHP programming code.
四分.
四分. 2020-11-02 21:49:09
0
4
1159

Find all numbers within 2000 that are divisible by 7 and contain 7. Change a line every 10 characters

Display on the web page in the php environment

It would be better if you could give some comments

四分.
四分.

reply all(3)
手機(jī)用戶1578621769

//More rigorous writing

$num=1;for ($i = 0; $i <= 2000; $i ) { if ($i != 0) { if ($ i % 7 == 0 || strstr($i, 7)) { echo $i.'--'; if ($num % 10 == 0) { echo "<br/>"; $num ; ????????????????????????????????}

手機(jī)用戶1578621769

//代碼少一點(diǎn)

for($i=0;$i<=2000;$i ){ ? ?if($i != 0){ ? ? ? ?if($i%7==0||strstr($i,7)){ ? ? ? ? ? ?echo $i.'-'; ? ? ? ? ? ?if($i==0){ ? ? ? ? ? ? ? ?echo "<br/>"; ? ? ? ? ? ?} ? ? ? ?} ? ?}}

曾經(jīng)瀟灑少年郎

It should look like this

image.png

##<?php

$num = 0;\\Set the initial number of outputs to 0

for($i=0;$i<=2000;$i ){

if( $i % 7==0 || strchr($i."",'7')){ \\If it is divisible by 7 or contains 7, it will be output

echo $i.",";

$num ;\\Output once, the number of outputs will be increased by one

}

if($num>=10){\\If the number of output reaches 10 times or exceeds 10 times, break the line

echo "<br/>";

$num=0;\\After newline, the output count is reset to 0

}

}

?>

  • reply //Concise writing for($i=0;$i
    phpcn牛 author 2020-11-06 18:25:02
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template