import java.util.Scanner;
class App {
public static void main(String[] args) {
Scanner keyBoard = new Scanner(System.in);
System.out.print("Enter number 1: ");
int n1=keyBoard.nextInt();
System.out.print("Enter number 2: ");
int n2=keyBoard.nextInt();
System.out.print("Enter number 3: ");
int n3=keyBoard.nextInt();
System.out.print("Enter number 4: ");
int n4=keyBoard.nextInt();
System.out.print("Enter number 5: ");
int n5=keyBoard.nextInt();
int product=n1*n2*n3*n4*n5;
System.out.print("The product of FIVE integers: "+product);
keyBoard.close();
}
}
Comments
Leave a comment