# 3.1算术运算符
#include <iostream>
using namespace std;
int main()
{
int a = 10;
int b = 3;
cout << a / b << endl;
//整数相除,仍然是整数
cout << a%b << endl;//取余数
//小数不能取余
++a;
cout<<
system("pause");
return 0;
}
# 2.8数据的输入
#include <iostream>
using namespace std;
int main2_8()
{
//1.整型
/* int a = 0;
cout << "a=" << endl;
cin >> a;
cout << "a=" << a << endl;
*/
//2.浮点型
//float f = 3.14f;
//cout << "f=" << endl;
//cin >> f;
//cout << "f=" << endl;
//3.字符型
//4.字符串型
//5.布尔类型
system("pause");
return 0;
}