Challenge for Investing Mortgages
Challenge
Note: Alpha challenge
You are given two doubles as input: a
, the annual earnings of your fund, and b
, the annual interest on your mortgage. Calculate the maximum sum you can have after the mortgage is paid off and print that sum (rounded to the nearest integer).
Please sign in or sign up to submit answers.
Alternatively, you can try out Learneroo before signing up.