qse/ase/cmd/awk/ite-002.awk

5 lines
70 B
Awk
Raw Normal View History

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