qse/ase/cmd/awk/ite-001.awk
2008-03-21 03:49:53 +00:00

8 lines
84 B
Awk

{
i = 1;
while (i <= $3) {
printf ("\t%.2f\n", $1*(1+$2)**i);
i = i + 1;
}
}