Untitled

 avatar
unknown
python
9 months ago
340 B
3
Indexable
#taking the inputs from the user
startInt = int(input("Enter start integer: "))
endInt = int(input("Enter end integer: "))
print("Here is the output:")

#looping through the start and end number and printing the calculation 
for num in range(startInt, endInt+1):
    print("{0} x ({1} + 1) = {2}".format(num, num, num*(num+1)))
    
Editor is loading...
Leave a Comment