Compound interest(usnig for loop)