12 7 -4 6
The program will run without complaint and add the first two numbers. It will skip the last two numbers.
Say that you have a file containing 100 integers, one integer per line. You wish to add up all these integers. You can write a program to add numbers from keyboard input.
Once it has been tested and debugged, it can be used with the input file. Here is a start on the program:
Fill in the blanks.