From 88a9ab7957e2d8d97711387004118f9232eb563d Mon Sep 17 00:00:00 2001 From: smallkun Date: Fri, 21 Feb 2025 09:42:11 +0800 Subject: [PATCH] Auto commit --- 2207/C语言同步练习源码/2.循环结构-6.c | 13 +++++++++++++ 2207/C语言同步练习答案.md | 13 +++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 2207/C语言同步练习源码/2.循环结构-6.c diff --git a/2207/C语言同步练习源码/2.循环结构-6.c b/2207/C语言同步练习源码/2.循环结构-6.c new file mode 100644 index 0000000..18029bd --- /dev/null +++ b/2207/C语言同步练习源码/2.循环结构-6.c @@ -0,0 +1,13 @@ +#include + +int main(){ + + int i; + for(i=5;i<=100;i++){ + if(i%5==0 || i%7==0){ + printf("%d ", i); + } + } + + return 0; +} diff --git a/2207/C语言同步练习答案.md b/2207/C语言同步练习答案.md index d5f5b49..d9045c9 100644 --- a/2207/C语言同步练习答案.md +++ b/2207/C语言同步练习答案.md @@ -318,6 +318,19 @@ int main(){ ![image-20250220231012110](https://yp.smallkun.cn/markdown/image-20250220231012110.png!compress) ```c +#include + +int main(){ + + int i; + for(i=5;i<=100;i++){ + if(i%5==0 || i%7==0){ + printf("%d ", i); + } + } + + return 0; +} ``` ### 循环结构-7