i have written code code want print 11 22 33 41 52 63 how ?
<?php for($i=1;$i<=6;$i++){ for($j=1;$j<=3;$j++){ echo $i.$j."\n"; } } ?>
if you're looking algorithm:
<?php $n=1; ($i=1;$i<=2;$i++){ for($j=1;$j<=3;$j++){ echo $n.$j."\n"; $n++; } } ?>
Comments
Post a Comment