Question: do while loop c++ sum of numbers?
Answer: Count-controlled while loop sum = 0; count = 1; while (count <= 10) { cout << "Enter a value: "; cin >> value; sum = sum + value; count++; } cout << "The sum of the 10 numbers is " << sum << endl; The variables sum and count are assigned the values 0 and 1 respectively.