Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- char ch[30];
- scanf("%s",ch);
- double salary,sells,TOTAL,BONUS;
- scanf("%lf%lf",&salary,&sells);
- BONUS=((sells*15)/100);
- TOTAL=(BONUS+salary);
- printf("TOTAL = R$ %.2lf\n",TOTAL);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement