Олимпиадный тренинг

Задача 27046. Number sequence - 1


Задача

Темы: Циклы
Given a natural number N, a real number A. Calculate
\(P = A \cdot (A + 1) \cdot...\cdot (A + N - 1)\ )
 
Input
The first line contains a natural number N (0<N<=10). The second line contains a real number A (-100< ;=A<=100).

Imprint
Output number P.