Question: C++ Write a program that reads a file containing some integer values (we do not know how many values). It displays the number and the
C++

Write a program that reads a file containing some integer values (we do not know how many values). It displays the number and the sum up to that point. At last it displays sum of all numbers. Create a file, input.txt, and type the following 8 integers in it: 44444444 . The program writes the output to a file called output.txt. Your program should display an output similar to the one given below: The average of these 8 numbers is: 4 The sum of these 8 numbers is: 32
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
