#include void main() { using namespace std; int sum = 0, value = 0, count = 0; cout << "Enter integers & program will compute their sum. Press Ctrl+z when input done:\n"; while ( cin >> value) { sum+=value; count++; } cout << "\nThe sum is: " << sum << endl; cout << "The total number you input was: " << count << endl; } /* Enter integers & program will compute their sum. Press Ctrl+z when input done: 1 2 3 4 5 6 7 8 9 10 ^Z The sum is: 55 The total number you input was: 10 Press any key to continue . . . */