Menu
  • HOME
  • TAGS

Create Loop for Amortization Schedule in Swift

ios,loops,swift,amortization

I'm guessing you mean to declare the balance variable outside the loop, and to decrement it inside the loop: // stylistically, in Swift it's usual to leave // off the types like Double unless you have a // reason to be explicit let loanAmount = 250_000.00 let intRate = 4.0...