Mega Code Archive

 
Categories / Php / Statement
 

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>