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