aboutsummaryrefslogtreecommitdiff
path: root/6a/8.4.26aExercise/8.4.26aExercise.cpp
blob: 59eb4f5f330d237ebaea8f51f18c61e7165c6f75 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// 8.4.26aExercise.cpp : This file contains the 'main' function. Program execution begins and ends there.
//

#include <iostream>
using namespace std;

int main()
{
    int base = 0;
    
    cout << "Input the size of the base of the triange: ";
    cin >> base;

    for ( int i = base; i > 0; i--) {
        for (int j = 0; j < i; j++) {
            cout << "*";
        }
        cout << endl;
    }

}