In this program, user is asked to enter two integers. Then, the product of those two integers is stored in a variable and displayed on the screen.


Step 1: Start.

Step 2: Declare variables, say a and b.

Step 3: result = a * b.

Step 4: Display result.

Step 5: Stop.

Source code:



C:\Users\santo\Desktop\new>java Product


*** ***


<< JAVA Program for division Two Integers >>

Enter first number: 5

Enter Second number: 6

The product of two numbers is:30

Screenshot of Output:

Screenshot of output

Leave a Reply

Your email address will not be published. Required fields are marked *