0

How can I draw a triangle

I have a question in java language, How can I draw a triangle of stars by using java for loop?. Please. .

10th Feb 2019, 4:08 PM
Mohammed Osman Izzeldin
Mohammed Osman Izzeldin - avatar
2 Answers
0
I just wrote that program ;). Basically, the program prints an asterisk until j becomes equal to i. Then a break line is executed. As i increases by 1, each line will have one more asterisk than the previous one. https://code.sololearn.com/cGzCYp0545bF/?ref=app
10th Feb 2019, 5:57 PM
Jhon
Jhon - avatar
0
Thanks, that's good
11th Feb 2019, 7:18 AM
Mohammed Osman Izzeldin
Mohammed Osman Izzeldin - avatar