Python program to multiply two numbers by repeated addition
- Rajesh Singh
- Feb 18, 2023
- 1 min read
Program:
a = int(input("Enter the first number: "))
b = int(input("Enter the second number: "))
product = 0
for i in range(b):
product= product+a
print(product)
Output:
Enter the first number: 3
Enter the second number: 4
12
Comments