A moneylender wants to receive his annual interest of 12% more frequently.
If he receives his interest rate every six months, he will receive 6% each time (12%/2).
He wants to know how much will he win during a year if he received his interest every year (n=1), every six months (n=2), every month (n=12), every week (n=52), every day (n=365) and every second (n=31536000). These will be the test cases.
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers43
Suggested Problems
-
Find the longest sequence of 1's in a binary sequence.
6847 Solvers
-
2254 Solvers
-
Generate a vector like 1,2,2,3,3,3,4,4,4,4
14356 Solvers
-
07 - Common functions and indexing 3
427 Solvers
-
Find the sides of an isosceles triangle when given its area and height from its base to apex
2241 Solvers
More from this Author9
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!