Question: 6. Create an array that prompt user to key in five integer values. Pass the array to a function name Sum() that will calculate and
6. Create an array that prompt user to key in five integer values. Pass the array to a function name Sum() that will calculate and display the sum of all the elements. Sample output: Enter five numbers and the program will calculate sum of the numbers. Enter number 1: 1 Enter number 2: 6 Enter number 3: 4 Enter number 4: 3 Enter number 5: 3 You have entered : 1, 6, 4, 3, 3 Sum of the numbers entered is : 17
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
