From abe9ba145ba90a9c8c0da83ba514d55d4fb19b48 Mon Sep 17 00:00:00 2001 From: pr769xcqp <1163930010@qq.com> Date: Fri, 8 Nov 2024 16:39:09 +0800 Subject: [PATCH] ADD file via upload --- 任务1.c | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 任务1.c diff --git a/任务1.c b/任务1.c new file mode 100644 index 0000000..8e00188 --- /dev/null +++ b/任务1.c @@ -0,0 +1,30 @@ +#include +void geshihua(int arr0[9][9]) +{ + int i,j; + printf("|"); + for(i=0;i<9;i++) + { + for(j=0;j<9;j++) + { + printf("%d ",arr0[i][j]); + + if(j==8) + { + printf("|\n"); + } + if(i==8&&j==8) + break; + if((i+1)%3==0&&j==8&&i!=8) + { + printf("|--------------------|\n"); + } + if((j+1)%3==0) + { + printf("|"); + + } + + } + } +}