Write a program that will add up sets of numbers. For this assignment you will be using
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a program that will add up sets of numbers. For this assignment you will be using a for loop and a while loop with a sentinel. 1. Ask the user to input how many numbers they would like to sum up. If they enter "-1" then quit the program. 2. Ask them to input the numbers, one-by-one. 3. Display the sum of the numbers in that set. 4. Ask them again how many numbers they would like to sum up.
Related Book For
Java An Introduction To Problem Solving And Programming
ISBN: 9780134462035
8th Edition
Authors: Walter Savitch
Posted Date: