Files
python/TangDou/XiTi/1136.cpp

20 lines
304 B
C++
Raw Normal View History

2025-08-30 18:35:01 +08:00
#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;
}