Electrical and Computer Engineering
4
of 23
UAH
CPE 112
Summing
•
sum = 0;
•
count = 1;
// Initialize count
•
•
while
(count <= 10)
•
{
•
cin >> number;
// Input a value
•
sum = sum + number;
// Add the value to
•
count++;
// the sum
•
}
•
•