Write a program that reads in exactly 10 integers and outputs the sum.

What will be an ideal response?

```
#include
//loop to accept 10 integers and sum
int main()
{
using namespace std;
int x, sum = 0;
cout << "Enter 10 integers, each followed by "
<< " I will give the sum." << endl;
for(int i =0; i < 10; i++)
{
cout << "Enter integer " << i << ": ";
cin >> x;
sum = sum + x;
}
cout << "sum: " << sum << endl;
return 0;
}
```

Computer Science & Information Technology

You might also like to view...

?A strong security program begins by assessing the backgrounds of the employees in the organization.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

The topic "The history of the West from 476 to 2014" is an example of a(n) _____ topic.

A. focused B. unfocused C. point of view D. element

Computer Science & Information Technology