Friday, 5 July 2013

Accept total sales and check if the sales is greater than 5000 commission is 12.5% and if sales is between 2000 and 5000 than the commission is 12% and if the sales is between 500 and 2000 than commission should be 10% ,otherwise no commission

#include<iostream>
using namespace std;
int main()
{
float sales;
cout<<"Enter your total sales: ";
cin>>sales;
if(sales>=5000)
{
cout<<"Your commission is 12.5%.";
}
if(sales<5000 && sales>=2000)
{
cout<<"Your commission is 12%.";
}
if(sales<2000 && sales>=500)
{
cout<<"Your commission is 10%.";
}
if(sales<500)
{
cout<<"You dont get any commission.";
}
}

No comments:

Post a Comment