print 1223334444555 in php using loop interview questions

technical talkiess
0

print 1223334444555 in php using loop interview questions 


<!DOCTYPE html>

<html>

<body>


<?php

for($i=1;$i<=5;$i++){

    for($j=1;$j<=$i;$j++){

    echo $i;

}

echo "</br>";

}


?> 


</body>

</html>





Output:-

1
22
333
4444
55555

Tags

Post a Comment

0Comments

Thanks you for commenting your questions. I will see question and respond you.

Post a Comment (0)