can someone please show me how to convert this pseudocode to python using nested loops
Posted
by angel
on Stack Overflow
See other posts from Stack Overflow
or by angel
Published on 2010-04-13T20:14:00Z
Indexed on
2010/04/13
20:23 UTC
Read the original article
Hit count: 406
N=5
For(rate=0.05, rate <= 0.15, rate = rate +0.05)
For(principle=1000, principle <= 1500, principle=principle + 1000)
simple = principle * (1 + rate * N) #Where N is the number of years
compound = principle * (1 + rate) ^ N
print simple + " " + compound
End For
End For
© Stack Overflow or respective owner