Print Table of number Program in PHP
Advertisements
Print Table of any number Program in PHP
The simple concept to generate table of any number is; number*1, number*2......number*10.
Print Table of number Program in PHP
<?php define('NUM', 3); for($i=1 ; $i<=10 ; $i++) { echo $i*NUM; echo '<br>'; } ?>
Output
3 6 9 12 15 18 21 24 27 30
Google Advertisment