A for Loop That Divides 4000 by Ten Incremental Numbers : for loop « Statement « PHP
- PHP
- Statement
- for loop
A for Loop That Divides 4000 by Ten Incremental Numbers
<html>
<head><title>A for Loop That Divides Ten Numbers</title></head>
<body>
<div>
<?php
for ( $counter=1; $counter <= 10; $counter++ ) {
$temp = 4000/$counter;
print "4000 divided by $counter is.. $temp<br />";
}
?>
</div>
</body>
</html>
Related examples in the same category