Question: Multiplication of 2 numbers can be done using a loop and just addition. Write the implementation for a public static method name multiplication that has
Multiplication of 2 numbers can be done using a loop and just addition. Write the implementation for a public static method name multiplication that has 2 integer parameters and returns an integer. This method should use a for loop with addition (no multiplication symbols!) to compute and return the product of the two arguments passed to this method.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
