Oct-02-2019, 03:30 PM
Hi,
I created this code to calculate a product used two input of user :
I was wondering if my reasoning is correct.
Regards,
RavCoder
I created this code to calculate a product used two input of user :
factor = int(input()) multiple = int(input()) for p in range ( 1, multiple + 1): print ('{} x {}={}'.format(factor, p, factor *p))The for lo cycle seen in a solution and the thing that does not enter my head is the reason why I used it in a in range (multiple + 1), I thought it was to iterate until I reached the value that was passed in input.
I was wondering if my reasoning is correct.
Regards,
RavCoder