题解 1037: [编程入门]宏定义的练习

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

c语言宏定义求余数

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>#define ret(a,b) t=a%b;int main(){    int a,b,t;    ……

这题简单吧

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){     int a,b,c;     scanf("%d%d",&a,&b);     c=a%b;     p……

宏定义的练习

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define Division(a,b) (a)%(b)int main(){    int a,b;   scanf("%d %d"……

宏定义的练习

摘要:解题思路:注意事项:注意要求是a/b的余数  余数参考代码:#include<stdio.h> #define yushu (a%b) int main() {     int a,b,c; ……

1037题: [宏定义的练习

摘要:# 自己写代码 ```c #include #include #define qiuyu(a,b) t=a/b; int main() { int a,b,t; scanf("……

无参宏定义

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define m a%bint main(){ int a,b; scanf("%d%d",&a,&b); printf("%d",m……

C语言 宏定义的练习&

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define remainder(a,b) printf("%d",a%b) int main(){            int a……