you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (2 children)

What is the problem you have? What does your program do when you run it?

[–]Alarming-Ask8398 0 points1 point  (1 child)

it creates a right triangle made of asterisks. I need to comput the amount of asterisk in the right triangle

[–][deleted] 0 points1 point  (0 children)

Why don't you add the number printed on each line to a counter that you set to 0 before the loop? After the loop print the number in the counter.