Write a program in BlueJ to find the product of any two numbers according to user choice.
Answers
Answered by
0
Answer:
import java.util.Scanner;
public class Main
{
public static void main(String[] args) {
System.out.print("Enter a number:");
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
System.out.print("Enter another number:");
int b = sc.nextInt();
int prod = a * b;
System.out.println("The product of the 2 numbers is " + prod);
}
}
Explanation:
Similar questions