Question: Write a program that asks the user to type 5 integers (the value of 5 integers are in range [-1000000; 1000000]) and writes the

Write a program that asks the user to type 5 integers (the

Write a program that asks the user to type 5 integers (the value of 5 integers are in range [-1000000; 1000000]) and writes the average of the 5 integers. This program uses only 2 variables. You need to complete the following code (You only write the missing code, not the whole program) #include #include using namespace std; int main() { int a=0, b; // code that makes the program works cout

Step by Step Solution

3.40 Rating (153 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To complete the code for finding the average of 5 integers using only 2 varia... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!