Coding is the closest thing we have to a surperpower

40 : GESP01-求余数
描述

输入两个数a和b,输出a除以b的余数。 

常用运算符:加(+)、减(-)、乘(*)、除(/)、求余(%) 

 

下面的代码是求两个数的和 

#include<bits/stdc++.h>

using namespace std;

int main() {

int a,b,c;

cin>>a>>b;

c=a+b;//赋值语句,把a+b的结果赋值给c

cout<<c<<endl;

return 0;

}

 

 

% :用Shift+5 打出来

输入

两个数

输出

第一个数 除以 第二个数 的余数

样例

输入

5  3

输出

2
语言:
主题: