Commission of Basic Sell

Suppose you will be get commission on the basic of your sell. The criteria for getting commission is given below.
1. 7% of total sell if selling  amount grater then or equal to 200000
2. 5% of total sell if selling  amount grater then or equal to 150000
3. 2% of total sell if selling  amount grater then or equal to 100000
4. 1% other wise

Program:
#include<stdio.h>
main(){
float amount,com;

printf("Enter your selling amount = ");
scanf("%f", &amount);

if(amount>=200000)
com=amount*.07;

else if(amount>=150000)
com=amount*.05;

else if(amount>=100000)
com=amount*.02;

else
com=amount*.01;

printf("Your commission = %.2f", com);
}
 

Loading
Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Flying Twitter Bird Widget By ICT Sparkle