题解 | #计算带余除法#
知识点:运算
#include <iostream>
using namespace std;
int main() {
int a, b;
int c, d;
cin >> a >> b;
c = a / b;
d = a % b;
cout << c << " " << d << endl;
return 0;
}
知识点:运算
#include <iostream>
using namespace std;
int main() {
int a, b;
int c, d;
cin >> a >> b;
c = a / b;
d = a % b;
cout << c << " " << d << endl;
return 0;
}
相关推荐
招聘动态