C program to multiply two numbers using plus operator
This program will read two integer numbers and find the multiplication of them using arithmetic plus (+) operator. We will not use multiplication operator here to multiply the numbers.
Example:
Input:
Enter first number: 10
Enter second number: 4
Output:
Multiplication of 10 and 4 is: 40
Logic:
Multiplying first number (10), second number (4) times
Multiplication is = 10 + 10 + 10 + 10 = 40
To find multiplication of two number - Here, we are using a loop that will run second number times and adding the first number.
For example: if we want to multiply 10 and 4 then either we can add 10, 4 times or we can add 4, 10 times.
Multiplication of two numbers using plus (+) operator
Output
need an explanation for this answer? contact us directly to get an explanation for this answer