0

How can I make multiplication table of any number in python?

I want some example in form of codes if possible.

11th Jul 2016, 5:34 AM
RUDRABHA MUKHERJEE
RUDRABHA MUKHERJEE - avatar
2 odpowiedzi
+ 1
num=int(input('Enter any number \n')) for i in range(1,10): print('%d x %d = %d'%(i,num,i*num))
11th Jul 2016, 7:28 AM
Subhankar Paul
Subhankar Paul - avatar
- 1
Another option: print('Type a number: ') user_input = input() for i in range(1,11): print(str(user_input) + ' x ' + str(i) + ' = ' + str(int(user_input) * i))
11th Jul 2016, 9:54 AM
Francisco Gómez García
Francisco Gómez García - avatar