#include using namespace std; // reads 10 integers from keyboard, and adds them up int main() { int num, sum, count; sum = 0; // initialize sum count = 1; // initialize number counter cout << "Please enter 10 integers to add up: "; while (count <= 10) { cin >> num; // read the next number sum += num; // add it to the sum count += 1; // increment number counter } cout << "the sum is: " << sum << endl; return 0; }