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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!