猫史档案馆


建议改为:作业有着落了!!!!

用户:原带马原带马查看:0 回复:1 评论:0 创建时间:2020-12-13T15:40:43


#include<iostream>
int main()
{
	using namespace std;
	float hats ,heads;

	cout.setf(ios_base::fixed, ios_base::floatfield);
	cout << "输入数字:";
	cin >> hats;
	cout << "输入其他数字";
	cin >> heads;

	cout << "hats=" << hats << ";heads=" << heads << endl;
	cout << "hats+heads=" << hats + heads << endl;
	cout << "hats-heads=" << hats - heads << endl;
	cout << "hats*heads=" << hats * heads << endl;
	cout << "hats/heads=" << hats / heads << endl;
}


回复

上一页1 页 / 共 1下一页
原带马原带马

c++!!!!

点赞0


评论