//loops.cpp

#include<iostream>

using namespace std;

int main() {

        int i, j;
        int sum = 0;
        int sum2 = 0;
        int counter = 0;
        int product = 1;
        int multcounter = 0;
        bool flag;

        for(i=1; i<=100; i++)
                sum = sum + i;

        for(i=1; i<=100; i++)
        {
                sum2 = sum2 + i;
                counter++;
                //cout << "second for \n";
        }

        j = 10;
        while (j > 0)
        {
                product = product * j;
                //cout << "product " << product << endl;
                multcounter++;
                j = j - 1;
                //cout << "j " << j << endl;
        }      

        cout << "the sum is " << sum << endl;
        cout << "the sum2 is " << sum2 << endl;
        cout << "the counter is " << counter << endl;
        cout << "the product is " << product << endl;
        cout << "the multcounter is " << multcounter << endl;

        return 0;
}