• linearchaos@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    4 months ago

    I would just rebuild something in my head like this every time.

    While i < n; k=k+(k*r); i++;

    You’d think I could remember k(1+r)^n but when you posted, it looked as alien as it felt decades ago.