The program accepts a whole number as input, multiplies that number by 12, and then outputs the product
Explanation:
This program asks user to enter two integer numbers and displays the product.
The scanner class is used as input functions.
The code is shown below :
import java.util.Scanner;
public class Demo {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
System.out.print("Enter number: ");
int num1 = scan.nextInt();
scan.close();
int product = num1*12;
System.out.println("Output: "+product);
}
}