Product of 2 integer numbers in Java
Java Output - Question 8
In this question, we will see how to print the product of 2 integer numbers in java programming using the java output. To know more about java output click on the java output lesson.
Q8) Write a program in java to find the product of 2 integer numbers like int a=4, b=8.
Program
public class Q8
{
public static void main(String args[])
{
int a=4, b=8;
System.out.println("Product=" + (a*b));
}
}
Output
Product=32