In: Computer Science
create a program that will allow the user to enter a start value from 1 to 5, a stop value from 10 to 12 and a multiplier from 1 to 4. the program must display a multiplication table from the values entered. for example if the user enters: start 2, stop 10 and multiplier 3, the table should appear as follows:
3*2=6
3*3=9
3*4=12
.
.
.
3*10=30
Source Code in python: (Refer below image of code for indentation)
#read start value from user
start=int(input("Enter a start value from 1 to 5: "))
#read stop value from user
stop=int(input("Enter a stop value from 10 to 12: "))
#read mulitplier from user
multiplier=int(input("Enter a multiplier from 1 to 4: "))
#using for loop print table
for i in range(start,stop+1):
print(multiplier,"*",i,"=",multiplier*i,sep='')
Source Code:
Output: