qq84435
//6.5
#include <iostream>
#include<cctype>
using namespace std;

void main65()
{
	int salary;
	cout<<"Enter your salary:";
	cin>>salary;
	while(salary>=0)//&&isdigit(salary))
	{
		if(salary<5000)
			cout<<"Your salary is "<<salary<<"  You shouldn\'t!"<<endl;
		else if(salary<15000)
			cout<<"Your salary is "<<salary<<" ,Your sui is "<<salary*0.1<<endl;
		else if(salary<35000)
			cout<<"Your salary is "<<salary<<" ,Your sui is "<<salary*0.15<<endl;
		else
			cout<<"Your salary is "<<salary<<" ,Your sui is "<<salary*0.2<<endl;

		cout<<"Enter your salary:";
		cin>>salary;
	}

	//cout<<salary<<"  isdigit()"<<endl;//<<isdigit(salary)<<endl;
	cout<<"Finish!";

	cin.get();
	system("pause");



}

分类:

技术点:

相关文章:

  • 2021-08-15
  • 2021-08-19
  • 2022-12-23
  • 2021-08-16
  • 2021-12-28
  • 2021-12-06
  • 2021-05-06
  • 2022-12-23
猜你喜欢
  • 2022-02-12
  • 2022-12-23
  • 2021-09-11
  • 2021-06-13
  • 2021-07-01
  • 2021-07-02
  • 2022-03-08
相关资源
相似解决方案