IHYPRESS PROGRAMMING
PHP programs with code and output for beginners
php logo
HOME | ASP | C | CSS | GNUPLOT | HTML | JAVASCRIPT | PERL | PHP | PYTHON | RUBY | SVG
PHP ❯ For Loop
<09>
<?php $brush_price = 5; $counter = 10; echo "<table border=\"1\" align=\"center\">"; echo "<tr><th>Quantity</th>"; echo "<th>Price</th></tr>"; while ( $counter <= 100 ) { echo "<tr><td>"; echo $counter; echo "</td><td>"; echo $brush_price * $counter; echo "</td></tr>"; $counter = $counter + 10; } echo "</table>"; ?>
Hergestellt in Deutschland / Made in Germany
QuantityPrice
1050
20100
30150
40200
50250
60300
70350
80400
90450
100500
COPYRIGHT © 2015-2024 IHY PRESS Frankfurt am Main 60329 Deutschland
Earn Free Bitcoin