FastFoodCoding

Login


Connect with one of the following accounts





Login

Please wait while we redirect...

Views: 93   



Following program shows you how to print table for given number.
In this program we get number from user and print that number table using for loop

number = int(input("Enter the number: "))
for i in range(1, 11):
    print(number, " * ", i, " = ", number * i)

Output:

Enter the number:  9
9  *  1  =  9
9  *  2  =  18
9  *  3  =  27
9  *  4  =  36
9  *  5  =  45
9  *  6  =  54
9  *  7  =  63
9  *  8  =  72
9  *  9  =  81
9  *  10  =  90



On By


Top Tutorials

Top Questions

Top Articles

Top Blogs

Top News