Question
Here's the assignment: Write a program that reads in five values, all integers, and prints the sum and the average (a real number) of these
Here's the assignment: Write a program that reads in five values, all integers, and prints the sum and the average (a real number) of these five numbers. Prompt the user for each number and make sure your print statements identify what the output actually is. Your prompt can be very simple, something like Enter a number and your print statements can be brief, as in the sum is xxx and the average is yyy
This is what I have so far :
#include
I think there is a problem with the line in which i'm adding together the number variables. Any help is appreciated.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started