๐Ÿ“ฆ Lythos0 / Personal-Programming-Projects

๐Ÿ“„ ps2-6.cpp ยท 17 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17#include <iostream>
using namespace std;

void makeAsterisks(int length) {
    for (int i = 1; i <= length; ++i) {
        for (int j = 0; j < i; ++j) {
            cout << "*";
        }
        cout << endl;
    }
}

int main() {
    makeAsterisks(5);
    return 0;
}