0

How can we calculate renth?

I want to make a little machine that counts renth. but i dont know how to make it. pls help md with this: i have a certain amount of money, i have a percentage of renth and i want to add that percentage to the money

3rd Aug 2016, 1:10 PM
Tom Post
Tom Post - avatar
2 Respuestas
+ 1
#instanciate money and percentage money = 100 percentage = 0.10 #compute rent rent = money*percentage #add rent money += rent or if you want it fast: money += money*percentage
3rd Aug 2016, 1:17 PM
Frederik Fleischmann
Frederik Fleischmann - avatar
0
thx
4th Aug 2016, 1:33 AM
Tom Post
Tom Post - avatar