Write a program that allows the user to enter 5 numbers in themain part of the program.
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a program that allows the user to enter 5 numbers in themain part of the program. It then sends these 5 values to afunction called SUM. This function adds all five numberstogether and returns this sum to MAIN. Finally, in MAIN,calculate the average and output both the sum and the average.
Test your program using these 5 numbers: 46,55, 86, 62, 58
Related Book For
Microsoft Visual C# An Introduction to Object-Oriented Programming
ISBN: 978-1337102100
7th edition
Authors: Joyce Farrell
Posted Date: