bevo009
4/1/2018 - 1:59 PM

Manhattan Interest Loop

Manhattan Interest Loop

main() {
  num price = 1000;
  
  for (int year = 1626; year <= 2018; year++) {
    price = price + (price * 0.02);
  }

  print(price.toStringAsFixed(2));
}