top of page

Python program to multiply two numbers by repeated addition

  • Writer: Rajesh Singh
    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



Recent Posts

See All

Comments


bottom of page