<script type="text/javascript>
var i,j;
for(i=1;i<=5;i++)
{
for(j=1;j<=6-i;j++)
{
document.write(" ");
}
for(j=1;j<=i+i-1;j++)
{
document.write("*");
}
document.write("<br />");
}
</script>
The Output is Given Below:
*
***
*****
*******
*********
0 comments:
Post a Comment