Q. Write a function to print the table of a given number. The number has to be entered by the user.


Answer :-


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


Output :-

Enter a number :- 19
19
38
57
76
95
114
133
152
171
190

>>>

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post