C Exercises: Multiply two integers without using multiplication, division, bitwise operators, and loops
20. Multiply Without Operators & Loops Variants
Write a C program to multiply two integers without using multiplication, division, bitwise operators, and loops.
Example 1:
Input: n1 = 50
Input: n2 = 12
Output: 600
Example 2:
Input: n1 = 0
Input: n2 = 12
Output: 0
Sample Solution:
C Code:
Sample Output:
50 x 12 = 600 0 x 12 = 0
Flowchart:

For more Practice: Solve these Related Problems:
- Write a C program to multiply two integers recursively without using multiplication, division, bitwise operators, or loops.
- Write a C program to simulate multiplication by repeated addition implemented via recursion only.
- Write a C program to multiply numbers by breaking the problem into recursive subproblems without loops.
- Write a C program to calculate the product of two integers using a recursive divide-and-conquer strategy without arithmetic operators.
C Programming Code Editor:
Improve this sample solution and post your code through Disqus.
Previous: Write a C program to find the square root of a number using Babylonian method.
Next: Write a C program to calculate and print average (or mean) of the stream of given numbers.
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.