find the product of 3 numbers entered by the user
Answers
Answered by
0
import java.util.Scanner;
public class Product {
public static void main(String[ ] args) {
Scanner sc = new Scanner(System.in);
System.out.println("Enter three numbers - ");
int numOne = sc.nextInt( ),
numTwo = sc.nextInt( ),
numThree = sc.nextInt( );
System.out.println("Product of numbers - " + (numOne * numTwo * numThree));
}
}
Similar questions