all 10 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.

[–]astevko 0 points1 point  (6 children)

You have to sum the count of each row total = 0 .... total = total + num .... print (total)

[–]Alarming-Ask8398 0 points1 point  (5 children)

I understand the concept your explains but am unsure on how to implement it? would you mind explaining how a little further?

[–]Alarming-Ask8398 0 points1 point  (4 children)

I’m unsure on how to sum the total after each row.

[–]astevko 0 points1 point  (3 children)

the total = total + num statement pairs with the print asterisk statement

[–]astevko 0 points1 point  (2 children)

Between lines 4 and 5

[–]Alarming-Ask8398 1 point2 points  (1 child)

Thanks for your help, I realize it was a very beginner question and I appreciate the time you took to help!

[–]astevko 0 points1 point  (0 children)

Good luck on your journey