Files
python/TangDou/Output/O5.cpp

19 lines
379 B
C++
Raw Normal View History

2025-08-30 18:35:01 +08:00
#include <bits/stdc++.h>
using namespace std;
int main() {
int i, j;
int line = 0;
scanf("%d", &line);
for (i = 0; i < line; i++) {
for (j = 0; j <= i + line - 1; j++) {
if (i + j >= line - 1)
printf("* ");
else
printf(" ");
}
printf("\n");
}
return 0;
}