NBA - Boston Celtics

Sunday, 18 November 2012

FIND OUT COMMISSION



#include<iostream.h>
void main()
{
float sales,comm;
cout<<"enter the sale ";
cin>>sales;
if(sales>=5000)
if(sales>=12000)
if(sales>=22000)
if(sales>=3000)
comm=sales*0.15;
else
comm=sales*0.1;
else
comm=sales*0.07;
else
comm=sales*0.03;
else
comm=0;
cout<<"commission of the sale is "<<comm;
}


No comments:

Post a Comment