$answer = 1;
for($x=1;$x<6;$x++){
$answer+=5*$x;
}
echo $answer;
3
solved How I use for loop to get the addition result? [closed]
$answer = 1;
for($x=1;$x<6;$x++){
$answer+=5*$x;
}
echo $answer;
3
solved How I use for loop to get the addition result? [closed]