WRITE A PROGRAM TO PRINT COMMISSION OF SALESMAN


#include<stdio.h>
#include<conio.h>
void main()
{
long int sales;
float c=0.0;
clrscr();

printf("ENTER SALES \n");
scanf("%ld",&sales);

if(sales>30000)
c=0.15*sales;
else if(sales<=30000&&sales>22000)
c=0.1*sales;
else if(sales<=22000&&sales>12000)
c=0.07*sales;
else if(sales<=12000&&sales>5000)
c=0.03*sales;
printf("COMMISSION OF THE SALESMAN TO BE RECEIVED = RS. %f",c);

getch();
}

SIMPLE PROGRAMS
FUNCTIONS


NUMBERS


STRINGS AND CHARACTERS

Comments