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