Given first term $a$, count $n$, and common ratio $r$, print the $n$ terms of the geometric sequence, one per line.
Input
Three integers $a$, $n$, $r$ ($1 \le a \le 10$, $1 \le n \le 10$, $1 \le r \le 10$).
Output
Print the $n$ terms, one per line.
Example 1
Input
2 5 3
Output
2 6 18 54 162
Discussion
Threads about this problem. Spoilers are collapsed; wrap hints in
||double bars||.No discussion yet. Start a thread if something here needs explaining.