C++ program to multiply two numbers without using arithmetic operator
- Home
- Calculations
- C++ program to multiply two numbers without using arithmetic operator
- On
- By
- 0 Comment
- Categories: Calculations, multiply
C++ program to multiply two numbers without using arithmetic operator
C++ program to multiply two numbers without using arithmetic operator
problem – C++ program to multiply two numbers without using arithmetic operator
In this tutorial, we will discuss the concept of multiplying two numbers without using arithmetic operator in C++ language.
In this post, we will learn how to get the product of two number without arithmetic operator in C++ programming language

C++ program to find product of two numbers
Using for loop – Program 1
This program is used to find the multiplication of two numbers entered by the user – using for loop without arithmetic operator
#include#include using namespace std; int add(int n1, int n2); //function prototype int main() { int n1,n2,product=0,i; cout << "Enter the first number: " ; cin>>n1; cout<<"Enter first number: "; cin>>n2; for(i=0; i When the above code is executed, it produces the following result
Enter the first number: 32 Enter the second number: 5 Product of 32 and 5 is: 160Using while loop – Program 2
This program is used to find the multiplication of two numbers entered by the user – using while loop without arithmetic operator
#include#include using namespace std; int add(int n1, int n2);//function prototype int main() { int n1,n2,product=0,i; //variable declaration cout << "Enter the first number: " ; cin>>n1; //takes input from user for n1 cout<<"Enter the second number: "; cin>>n2; //takes input from user for n2 for(i=0; i
When the above code is executed, it produces the following results
Enter the first number: 22 Enter the second number: 5 Product of 32 and 5 is: 110Similar program
C++ find product of two numbers
Java program to multiply two numbers without using arithmetic operator
C program to multiply two numbers without using arithmetic operator
Python program to multiply two numbers without using arithmetic operator
C++ code to multiply two numbers using function
Python program to multiply two numbers using function
C code to multiply two numbers using function
C# program to multiply two numbers using function
PHP program to multiply two numbers
C# program to multiply two numbers
JavaScript program to multiply two numbers
Suggested for you
Datatype in C++ language