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

8 lines
84 B
Awk
Raw Normal View History

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