I want to start with x = 100, then multiply it by 1.1 and get the result (110 in this case) then do the same again with the result.
I want the output to look something like
1.) 100
2.) 110
3.) 121
.
.
.
150.) Result.
I have no idea how to do this; I tried defining x = 100 and y = 1.1x and setting x equal to y at the end of each loop, but I can't get it to work.
Aucun commentaire:
Enregistrer un commentaire