Advertisement
MOHD_NASIR_UDDIN42

1009-Salary with Bonus-URI Online Judge

Apr 21st, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.20 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     char str[10];
  5.     scanf("%s",str);
  6.     double a,b,sum;
  7.     scanf("%lf %lf",&a, &b);
  8.     sum=a + (b*15)/100;
  9.     printf("TOTAL = R$ %.02lf\n",sum);
  10.     return 0;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement