Mk chuyển các biến cho nó ngắn gọn:
tiengui:tg,laisuat:ls.
program tinhtien;
uses crt;
var tiengui, laisuat: real;
n: integer;
BEGIN
clrscr;
write(' Nhap so tien gui '); readln(tg);
write(' Nhap lai suat vao '); readln(ls);
write(' So thang gui vao la '); read(n);
For 1 to n do tiengui:=tiengui+tiengui/100*laisuat;
write(' So tien duoc nhan la', tiengui);
readln;
END.