Computer Science, asked by sahadilipkumar183, 11 months ago

WAP in Java to find the product of two numbers without using '*' operator.

Answers

Answered by amannishad0512p5zxh6
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