Question #20515

8 multiplied by 15 equals to 120.
10 multiplied by 18 equals to 180.
12 multiplied by 21 equals to 252.
please help me write this in FOR LOOP PHP

Expert's answer

$s =0;

$k =15

for($i=8;$i<=12;$i+=2)

{

$s =$i * $k;

$k+=3;

}

$k =15

for($i=8;$i<=12;$i+=2)

{

$s =$i * $k;

$k+=3;

}

## Comments

## Leave a comment