//运算符
//取模运算 % 也叫做取余数运算 计算余数
#include<iostream>
using namespace std;
#include<string> //使用C++分格的字符串需要使用这个头文件
int main()
{
//取模运算的本质就是求余数
int a = 10;
int b = 3;
cout << a % b <<endl;
int c = 20;
int d = 3;
cout << c % d<<endl;
//取模基于除法运算 除数不能为 0
//两个小数之间不可以进行取模运算
double a1 = 0.26;
double b1 = 0.13;
//cout << a1 % b1 << endl; 错误的示例,不能是小数 取模用的少
system("pause");
return 0;
};