loop_1.5

<script type="text/javascript>
var i,j;
for(i=1;i<=6;i++)
{
for(j=1;j<=i;j++)
{
document.write(i);
}
document.write("
"); } </script>


The Output is Given Below:
1
22
333
4444
55555
666666

0 comments:

Post a Comment