please help me , im newbie , and i have a problem .
My code is .
$angka=5;
$k=0;
$sum=1;
echo "<br/>";
echo "Hasil :";
echo "<br/>";
for($i=1; $i<=$angka; $i++) {
for($j=1; $j<=$angka; $j++-6+1) {
$k+=$sum;
echo $k;
}
$k+=$sum;
$sum*=-1;
}
?>
I want the result is like this .
15151
24242
33333
42424
51515
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…