Multiplication Table with for loop in VS Code
# Create a Multiplication Table of any user input number
n=int(input("Enter a number\n"))
for i in range(1,50):
print(n,"*",i,"=",n*i)
print("Table of ",n,"printed")
# Create a Multiplication Table of any user input number
n=int(input("Enter a number\n"))
Comments
Post a Comment