Headlines
Loading...
C Program to enter the sale value and printout the commission value

C Program to enter the sale value and printout the commission value

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",&amp;salev);
if((salev&gt;100)&amp;&amp;(salev&lt;=1000))
{
 comv=salev*(0.02);
 printf("Commision=%0.2f",comv);
}
else if(salev&gt;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>
*** PLEASE checkout the Best deals from for top sites like Amazon, Flipkart etc ***