dont use this algorithm it doesnt work. im trying to fix it as of now. The square root sign doesnt work for some reason. Compound interest formula is below.

Variable

Ask for P with default 0
Variable

Ask for r with default 0
Variable

Ask for n with default 1
Variable

Ask for t with default 1
Variable

Set r to (r/100)
Variable

Set r to r/n
Variable

Set r to 1+r
Variable

Set r to r^nt
Output

Print variable r
Variable

Set A to P*r
Output

Print variable A
Output

Print text P*(1 + (r/n)^nt