Advertisement
Guest User

1009

a guest
Oct 14th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.26 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     char ch[30];
  5.     scanf("%s",ch);
  6.      double  salary,sells,TOTAL,BONUS;
  7.  
  8.     scanf("%lf%lf",&salary,&sells);
  9.     BONUS=((sells*15)/100);
  10.     TOTAL=(BONUS+salary);
  11.     printf("TOTAL = R$ %.2lf\n",TOTAL);
  12.  
  13.     return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement