Answers for "python multiply two integers syntax"

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 multiply 2 variables

num1 = "2" # first variable
num2 = "2" # second variable
output = num1*num2 # multiplied number

# Optional: print multiplied number
print(output)
Posted by: Guest on November-30-2020

Code answers related to "python multiply two integers syntax"

Python Answers by Framework

Browse Popular Code Answers by Language