For12. An integer N (>0) is given. Find a product
\(1.1 \cdot 1.2 \cdot 1.3 \cdot ... \)
(N factors).

Solution in Python 3:

import random

N = random.randrange(1,10)
print('N = ', N)

P = 1.0
for i in range(1,N+1):
x = 1 + i*0.1
P *= x
print(i," : ",x," : ",P)
print("Product = ",P)