Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python program to multiply numbers from User Input

factor1 = input('Enter the multiplicand: ')
factor2 = input('Enter the multiplier: ')

product = float(factor1) * float(factor2)

print(f'{factor1} times {factor2} is: {product}')

#output
> Enter the multiplicand: 21
> Enter the multiplier: 3
21 times 3 is 63.0
Source by codinggear.blog #
 
PREVIOUS NEXT
Tagged: #Python #program #multiply #numbers #User #Input
ADD COMMENT
Topic
Name
9+1 =