2025-03-20

This commit is contained in:
smallkun 2025-03-20 10:33:39 +08:00
parent 6b6d78b340
commit 5e39adead8
3 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,11 @@
#include <stdio.h>
#define f(n) (n%5==0 && n%7==0?"能被整除\n":"不能被整除\n")
int main(){
//#define 指令 语句序列 会在语句序列中将所有参数替换成传入的
int num;
scanf("%d", &num);
puts(f(num));
return 0;
}

View File

@ -887,7 +887,19 @@ int main(){
### 预处理-2
![image-20250227231314793](https://yp.smallkun.cn/markdown/image-20250227231314793.png!compress)
```c
#include <stdio.h>
#define f(n) (n%5==0 && n%7==0?"能被整除\n":"不能被整除\n")
int main(){
//#define 指令 语句序列 会在语句序列中将所有参数替换成传入的
int num;
scanf("%d", &num);
puts(f(num));
return 0;
}
```
### 预处理-3