Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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
 
PREVIOUS NEXT
Tagged: #write #program #multiply #numbers #function #python
ADD COMMENT
Topic
Name
3+2 =