Write a program to print table of a number using loop. Take the number from the user.
user = int(input("Enter the number for which you wanna get the table: "))
print("The table for", user, "is here")
for i in range(0, 11):
print(user, '*', i, '=', user*i)
Comments
Leave a comment