3
I’m using the for to generate a loop of 4 repetitions! Inside this loop I do a simple numerical multiplication.
<?php
echo "Resultado: ";
for($loop = 1; $loop <= 4; $loop += 1)
{
echo ($loop * 10)." ";
}
?>
Resultado: 10 20 30 40
And I don’t know how, but I’d like the result to be
1 10 50 100
How to do this!?
The simplicity of the code helped a lot!
– ivan veloso