2025-03-20
This commit is contained in:
@@ -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;
|
||||||
|
}
|
||||||
@@ -887,7 +887,19 @@ int main(){
|
|||||||
### 预处理-2
|
### 预处理-2
|
||||||
|
|
||||||

|

|
||||||
|
```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
|
### 预处理-3
|
||||||
|
|||||||
Reference in New Issue
Block a user