Miscellany
public text v1 · immutableint year = 0;
float start = p;
float increment = r / 100;
float target = p * 2; // twice the amount;
for(start; start < target; start *= increment)
year++;
int year = 0;
float start = p;
float increment = r / 100;
float target = p * 2; // twice the amount;
for(start; start < target; start *= increment)
year++;