top of page

Python program to multiply two numbers by repeated addition


a = int(input("Enter the first number: "))

b = int(input("Enter the second number: "))

product = 0

for i in range(b):

product= product+a



Enter the first number: 3

Enter the second number: 4


9 views0 comments

Recent Posts

See All

Write a Python function to calculate the factorial of a number (a non-negative integer). The function accepts the number as an argument. This program is most for O Level Practical Exam so read it care

bottom of page