Display a pyramid of asterisks onscreen ie a nested for


How do I stop one loop from going in to the next one when I am programming it?

Display a pyramid of asterisks onscreen (i.e., a nested for loop)

Display the integers 10 to 1 in decreasing order, one number per line (i.e., a while/do-whlie loop)

Add 7 until the sum becomes greater than 157, at which point the program should display both the sum and the number of 7s added

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Display a pyramid of asterisks onscreen ie a nested for
Reference No:- TGS02788795

Now Priced at $15 (50% Discount)

Recommended (93%)

Rated (4.5/5)