Input sales. Find and print commission. Commission is calculated as follows:
Input sales. Find and print commission. Commission is calculated as follows:
| SALES | Commission |
|---|---|
| <=10000 | 1% |
| >10000 but <=30000 | 5% |
| Rest | 10% |
| #include< #include< void main( ) { float s, c; clrscr( ); printf("Enter Sales"); scanf("%f", &s); if (s<10000) c=s*1/100; else if(s < 30000) c=s*5/100; else c=s*10/100; printf("/n Commission is =%.2f", c); getch( ); } |
|---|


0 comments:
Post a Comment