Answers for "program to multiply two numbers in python"

0

1. write a program to multiply two numbers using function python

def add_num(a,b):#function for multiplication
    multiply=a*b;
    return multiply; #return value
num1=int(input("input the number one: "))#input from user for num1
num2=int(input("input the number one: "))#input from user for num2
print("The product is",add_num(num1,num2))#call te function
Posted by: Guest on March-09-2021
0

python program to multiply two numbers and multiply the answer with 2nd variables

n=10
num1 = 2
num2 = 3

for i in '10':
    num3 = num1 * num2
    num1 = num2 *num3
    num2 = num3 * num1
    print(m)
    print(num1)
    print(num2)
#2,3,6,18,108,1944
Posted by: Guest on July-07-2021

Code answers related to "program to multiply two numbers in python"

Python Answers by Framework

Browse Popular Code Answers by Language