4
*
**
***
****
*****
******
*******
********
*********
**********
How do I do this with nested repetitions using the for
Javascript, or in Visualg?
to give you an idea of what the code would be like :
for(var linha = 0; linha < 10; linha = linha++) {
for(var coluna = 0; coluna < 10; coluna = coluna++) { Document.write("*");
}
Document. Write("");
}
It’s like this, but I can’t think of anything to give that effect using two loop
You don’t have to nest ribbons to print that on the screen.
– bfavaretto
You want to do that where? in an html page?
– Sergio
It’s cuddle, I’ve edited.
– HvCeaser
What is the need of the second
for
? Is it because you will use different characters? We want to help but I think it is not yet clear what is missing in the answers already given.– Sergio
It’s a lesson. And she’s asking to do this exercise with 2 for
– HvCeaser
Ah!... ok, so you can do it like this: https://jsfiddle.net/ykmq1rnt/ This is what you were looking for?
– Sergio
I don’t understand this link
– HvCeaser
@H.Vceaser If any of the answers helped you solve the problem, mark it as accepted by clicking on the "arrow" below the score!
– stderr