import java.util.*;
import java.lang.*;
import java.io.*;
//Given two numbers A & B. Return their product.
// The main method must be in a class named "Main".
public class Main {
    public static void main(String[] args) {
        Scanner scn = new Scanner(System.in) ;
        int A= scn.nextInt();
        int B = scn.nextInt();
        int result = product(A,B) ;
        System.out.println(result);
    }
  public static int product(int A, int B) {
    int prod = 1;
    prod = A*B;
    return prod;      
  }
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: