C program to find commission amount on the basis of sales amount
Answer:
#include<stdio.h>
int main()
{
float sa,c;
printf("Enter sales amount");
scanf("%f",&sa);
if(sa<=1000)
{
c=sa*5/100;
printf("Commission=%.2f",c);
}
else if(sa>=1001&&sa<=2000)
{
c=sa*10/100;
printf("Commission=%.2f",c);
}
else
{
c=sa*12/100;
printf("Commission=%.2f",c);
}
return 0;
}