This commit is contained in:
2026-06-15 09:00:38 +08:00
parent fec66377d5
commit 4640c5e02b
191 changed files with 6046 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
#include <stdio.h>
// row 表示当前要打印的行号(从1开始),n 表示总行数
void printAt(int row, int n) {
if (row > n)
return;
for (int i = 0; i < row; i++)
printf("@");
printf("\n"); // 打印完一行后换行
printAt(row + 1, n);
}
int main() {
int n = 3;
printAt(1, n);
return 0;
}