#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<<"commision of the sale is "<<comm;
}
No comments:
Post a Comment