#include #include using namespace std; //Sum of the integers from 1 to 100 inclusive. int main() { int sum {0}; sum += 1; //means sum = sum + 1 sum += 2; //means sum = sum + 2 sum += 3; //means sum = sum + 3 sum += 4; //means sum = sum + 4 sum += 5; //means sum = sum + 5 sum += 6; //means sum = sum + 6 sum += 7; //means sum = sum + 7 sum += 8; //means sum = sum + 8 sum += 9; //means sum = sum + 9 sum += 10; //means sum = sum + 10 sum += 11; //means sum = sum + 11 sum += 12; //means sum = sum + 12 sum += 13; //means sum = sum + 13 sum += 14; //means sum = sum + 14 sum += 15; //means sum = sum + 15 sum += 16; //means sum = sum + 16 sum += 17; //means sum = sum + 17 sum += 18; //means sum = sum + 18 sum += 19; //means sum = sum + 10 sum += 20; //means sum = sum + 20 sum += 21; //means sum = sum + 21 sum += 22; //means sum = sum + 22 sum += 23; //means sum = sum + 23 sum += 24; //means sum = sum + 24 sum += 25; //means sum = sum + 25 sum += 26; //means sum = sum + 26 sum += 27; //means sum = sum + 27 sum += 28; //means sum = sum + 28 sum += 29; //means sum = sum + 29 sum += 30; //means sum = sum + 30 sum += 31; //means sum = sum + 31 sum += 32; //means sum = sum + 32 sum += 33; //means sum = sum + 33 sum += 34; //means sum = sum + 34 sum += 35; //means sum = sum + 35 sum += 36; //means sum = sum + 36 sum += 37; //means sum = sum + 37 sum += 38; //means sum = sum + 38 sum += 39; //means sum = sum + 39 sum += 40; //means sum = sum + 40 sum += 41; //means sum = sum + 41 sum += 42; //means sum = sum + 42 sum += 43; //means sum = sum + 43 sum += 44; //means sum = sum + 44 sum += 45; //means sum = sum + 45 sum += 46; //means sum = sum + 46 sum += 47; //means sum = sum + 47 sum += 48; //means sum = sum + 48 sum += 49; //means sum = sum + 49 sum += 50; //means sum = sum + 50 sum += 51; //means sum = sum + 51 sum += 52; //means sum = sum + 52 sum += 53; //means sum = sum + 53 sum += 54; //means sum = sum + 54 sum += 55; //means sum = sum + 55 sum += 56; //means sum = sum + 56 sum += 57; //means sum = sum + 57 sum += 58; //means sum = sum + 58 sum += 59; //means sum = sum + 59 sum += 60; //means sum = sum + 60 sum += 61; //means sum = sum + 61 sum += 62; //means sum = sum + 62 sum += 63; //means sum = sum + 63 sum += 64; //means sum = sum + 64 sum += 65; //means sum = sum + 65 sum += 66; //means sum = sum + 66 sum += 67; //means sum = sum + 67 sum += 68; //means sum = sum + 68 sum += 69; //means sum = sum + 69 sum += 70; //means sum = sum + 70 sum += 71; //means sum = sum + 71 sum += 72; //means sum = sum + 72 sum += 73; //means sum = sum + 73 sum += 74; //means sum = sum + 74 sum += 75; //means sum = sum + 75 sum += 76; //means sum = sum + 76 sum += 77; //means sum = sum + 77 sum += 78; //means sum = sum + 78 sum += 79; //means sum = sum + 79 sum += 80; //means sum = sum + 80 sum += 81; //means sum = sum + 81 sum += 82; //means sum = sum + 82 sum += 83; //means sum = sum + 83 sum += 84; //means sum = sum + 84 sum += 85; //means sum = sum + 85 sum += 86; //means sum = sum + 86 sum += 87; //means sum = sum + 87 sum += 88; //means sum = sum + 88 sum += 89; //means sum = sum + 89 sum += 90; //means sum = sum + 90 sum += 91; //means sum = sum + 91 sum += 92; //means sum = sum + 92 sum += 93; //means sum = sum + 93 sum += 94; //means sum = sum + 94 sum += 95; //means sum = sum + 95 sum += 96; //means sum = sum + 96 sum += 97; //means sum = sum + 97 sum += 98; //means sum = sum + 98 sum += 99; //means sum = sum + 99 sum += 100; //means sum = sum + 100 cout << "The sum of the numbers from 1 to 100 inclusive is " << sum << ".\n"; return EXIT_SUCCESS; }