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

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

筛选

用函数写的

摘要:解题思路:注意事项:参考代码:def get_sum(a=4,b=3):    a,b =map(int,input().split())    sum = a%b    print(sum)get_……

使用宏定义写取余运算

摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;// 定义求余数的宏// 注意:除数b不能为0,使用时需确保#define MO……