1Multiply two integer numbers
2
3num1=int(input("Enter the first number: "))
4#input value for variable num1
5num2=int(input("Enter the second number: "))
6#input value for variable num2
7mul=num1*num2;
8#perform multiplication operation
9print("the product of given numbers is: ",mul)
10#display the product
11
12When the above code is compiled and executed, it produces the following results
13Enter the first number: 23
14Enter the second number is: 32
15the product of the given numbers is 736
16
1# multiplication of two or more numbers
2def multiple(*a):
3 result = 1
4 for i in a:
5 result = result * i
6 return result
7
8
9# insert any number of arguments for multiplication, example:
10res = multiple(12, 2, 5)
11print(res)
12# In this example, code output is = 120