+ 1
Star patterns
How can I get this patterns using only for or while loop(no function)
6 Answers
+ 1
can you draw the pattern
+ 1
draw means:-
********
****
+ 1
var space = "  ", star = "*";
for (var i = 0; i <2*8;i++){
for (var j=0; j <8+i; j++) {
document.write( " " );
}
for (var j=0; j <8-i; j++){
document.write(space + star);
}
{document.write("<br>");
j++
}
}
0
what do you mean to draw
0
oh sorry the pic was not posted
0
i need to draw diamond, i wrote this code, now need the upper part/ triangle