Multiply Two Numbers without using * (Multiplication Operator)

Write a C program to multiply two numbers without using * multiplication operator.

Given two numbers, both numbers are positive.  Write a program to multiply two numbers without using * multiplication operator.  This problem is bit tricky as we are not allowed to use multiplication operator .

We can use multiple approaches to solve this problem. In this tutorial, i am going to explain how to multiply two numbers using recursion as well as using iterative approach.

C Program to Multiply Two Numbers without using *

C Program to Multiply Two Numbers without using *

C Programs on Arrays, Strings, Linked List, Stack, Queues.

Programming questions for practice

C Program to Multiply two numbers without using * Multiplication Operator

1. First Method: Using Recursion to multiply two numbers without using *. We can easily calculate the product of two numbers using recursion without using * multiplication operator.

 

MCQ on Recursion.

2. Second Method – Iterative Approach to multiply two numbers without using *.

I have explained how to solve this problem using recursion. Let’s multiply two numbers using an iterative method.

If you don’t know the difference between recursive and iterative approach then check my previous tutorial on Difference between recursion and iteration.

b) We can solve this problem using for loop as well.

C Program to swap two numbers using third variable

C program to swap without using third variable

Programming video Tutorials

Tagged , , . Bookmark the permalink.

About WebRewrite

I am technology lover who loves to keep updated with latest technology. My interest field is Web Development.