int x1, x2, x3, ....
cin >> x1 >> x2 >> ... sum = x1 + x2 + ... sum2 = pow((x1 -xbar),2) + pow((x2 - xbar),2) + ...
int data[10];
size_t i; int sum; for(i =0; i < 10; i++) { cin >> data[i]; } for(i = 0; i < 10; i++) { sum += data[i]; }