~/algor $ cat problems/a-dan-b-gacha-kopaytma
Product from A to B
Easy
1000 ms
64 MB
26%
Two integers $A$ and $B$ are given ($A \lt B$). Compute the product of all integers from $A$ to $B$:
$$P = A * (A + 1) * \dots * B$$
Input
One line with two integers: $A$ and $B$.
Output
One integer — the product.
Note
$1 \le A \lt B \le 10$
Examples
Input #1
1 5
Output #1
120
Input #2
2 6
Output #2
720