Question: I need it in C++ 27.5 Loops (nested)**: Sum a given number of integers A user will enter an initial number, followed by that number
27.5 Loops (nested)**: Sum a given number of integers A user will enter an initial number, followed by that number of integers. Output those integers' sum. Repeat until the initial number is 0 or negative. Ex: If the user enters 3961 0, the output is 16 Exc If the user enters 39612530, the output is 16 Hints Use a while loop as an outer loop. Get the user's initial number of ints before the loop, and at then end of the loop body Use a for loop as an inner loop, inside the while loop body Loop from-0, to i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
