Write a program for multiplication of two numbers without using multiplication operator in java ?
package javatute;
import java.util.*;
class MultipicationOfTwoNumber {
public static void main(String args[]) {
Scanner in = new Scanner(System.in);
System.out.println("Enter the first number");
int n1 = in.nextInt();
System.out.println("Enter the Second number");
int n2 = in.nextInt();
int n3 = 0;
for (int i = 0; i < n2; i++) {
n3 = n3 + n1;
}
System.out.println("The multiplication of two nos is" + n3);
}
}