优质题解 [编程入门]宏定义的练习-题解(C语言代码) 摘要:**余数?** 在整数的除法中,只有能整除与不能整除两种情况。当不能整除时,就产生余数,取余数运算:a mod b = c(b不为0) 表示整数a除以整数b所得余数为c,如:7÷3 = 2 ···…… 题解列表 2019年12月10日 0 点赞 9 评论 6546 浏览 评分:7.6
[编程入门]宏定义的练习-题解(C语言代码) 摘要:#include #define yu(a,b) t=a%b; #include int main() { int a,b,t,c; scanf("%d%d",&a,&b); c…… 题解列表 2019年12月04日 0 点赞 1 评论 1939 浏览 评分:8.0
[编程入门]宏定义的练习-题解(Python代码) **代码如下:**x=list(map(int,input().split()))s=x[0]%x[1]print(s)**不太明白宏是什么可能python里面没有只能投机取巧了。** 题解列表 2019年12月03日 0 点赞 2 评论 2957 浏览 评分:8.8
[编程入门]宏定义的练习-题解(C语言代码) 摘要: #include //#include "Header.h" #define PI 3.14159 #define ABS(x) ((x)>=0?(x):(-x…… 题解列表 2019年11月03日 0 点赞 0 评论 1040 浏览 评分:0.0
[编程入门]宏定义的练习-题解(C语言代码) 定义函数 #include#includeintyushu(inta,intb){intsum;sum=a%b;returnsum;}intmain(){intx,y,ans;scanf("%d%d",&x,&y);ans=yushu(x,y);printf("%d\n",ans);return0;} 题解列表 2019年06月13日 0 点赞 0 评论 1260 浏览 评分:0.0
[编程入门]宏定义的练习 与输入顺序无关(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define sq(m,n) m-(m/n)*nint main(){ int x,y,sq,temp; scanf("%d%d",&…… 题解列表 2019年05月11日 0 点赞 0 评论 1244 浏览 评分:0.0
[编程入门]宏定义的练习 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define fun(a,b) t=a%b;int main(){ int a,b,t; scanf("%d",&a); scanf(…… 题解列表 2019年05月04日 0 点赞 0 评论 1570 浏览 评分:0.0
[编程入门]宏定义的练习 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #define R(a,b) a%b int main() { int a,b,rem; scanf("…… 题解列表 2019年05月03日 0 点赞 0 评论 1399 浏览 评分:0.0
[编程入门]宏定义的练习 (C语言代码)。。。。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define N(x,y) t=x%y;int main(){ int x,y,t; scanf("%d%d",&x,&y); N(x…… 题解列表 2019年05月01日 0 点赞 0 评论 1075 浏览 评分:0.0
[编程入门]宏定义的练习 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define qy(a,b) a%bint main(){int a,b; scanf("%d %d",&a,&b); p…… 题解列表 2019年04月22日 2 点赞 0 评论 1371 浏览 评分:0.0