Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- double P = scan.nextDouble() / 100.0,
- $$,
- $ = ($$ = scan.nextDouble()) + $$ * P,
- coins = ($$ = scan.nextDouble()) + $$ * P + ($ - (int)$) * 100.0;
- $ = (int)$;
- $ += (int)(coins / 100);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement