WAP in Java to find the product of two numbers without using '*' operator.
Answers
Answered by
2
class product
{
public static void main(int a,int b)
{
int product=0,i;
for( i=1;i<=b;i++)
{
product=product+a;
}
System.out.println("Product is "+product);
}
}
Mark me brainlest @ and follow me.
Similar questions