loop_1.6

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


The Output is Given Below:
*
***
*****
*******
*********

0 comments:

Post a Comment