Advertisement
Guest User

Untitled

a guest
Jan 17th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.20 KB | None | 0 0
  1.     double P = scan.nextDouble() / 100.0,
  2.         $$,
  3.         $ = ($$ = scan.nextDouble()) + $$ * P,
  4.         coins = ($$ = scan.nextDouble()) + $$ * P + ($ - (int)$) * 100.0;
  5.     $ = (int)$;
  6.     $ += (int)(coins / 100);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement