AC

你好啊陌生人  •  1天前


include <bits/stdc++.h>

using namespace std;

int main() {

int n, x = 0;
cin >> n;
while (x <= n) {
	for (int m = 1; m <= x; m++) {
		cout << "*";
		if (m == x) {
			cout << endl;
		}
	}
	x++;
}
return 0;

}


评论:

请先登录,才能进行评论