~/algor $ cat problems/darajalar-ketma-ketligi
Sequence of powers
Easy
1000 ms
64 MB
27%
A real number $a$ and a positive integer $N$ are given. Compute all powers of $a$ from $1$ to $N$:
$$a^{1}, a^{2}, a^{3}, \dots, a^{N}$$
Input
One line with a real number $a$ and a positive integer $N$.
Output
One line with $N$ numbers separated by spaces, each with exactly 2 digits after the decimal point (for example, 2.00 4.00 8.00 16.00).
Note
$0 \lt a \le 10$
$a$ has at most $1$ digit after the decimal point
$1 \le N \le 10$
Examples
Input #1
2 4
Output #1
2.00 4.00 8.00 16.00
Input #2
3 3
Output #2
3.00 9.00 27.00