C Program to enter the sale value and printout the commission value
#include<stdio .h="">
#include<conio .h="">
void main()
{
float salev,comv;
clrscr();
printf("\nEnter the sale value:");
scanf("%f",&salev);
if((salev>100)&&(salev<=1000))
{
comv=salev*(0.02);
printf("Commision=%0.2f",comv);
}
else if(salev>1000)
{
comv=salev*(0.03);
printf("Commission=%0.2f",comv);
}
else
printf("Commission=0",comv);
getch();
}
**************OUTPUT**************
Enter the sale value: 110
Commision=2.20</conio></stdio>