#include using namespace std; int main() { int sum {0}; //Start with sum holding 0. for (int i {1}; i <= 100; ++i) { //Make i run through values 1 to 100. sum += i; //Add each value of i onto the sum. } cout << "The sum is " << sum << ".\n"; //Output the answer. return EXIT_SUCCESS; }