You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
304 B

#include <bits/stdc++.h>
using namespace std;
void printThree(int n) {
for (int i = 0; i < n; ++i) {
for (int j = 0; j <= i; ++j) {
cout << "*";
}
cout << endl;
}
}
int main() {
int n;
cin >> n;
printThree(n);
return 0;
}