Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Ex1 {
- public static void main(String[] args) {
- int x;
- int y;
- int z;
- int result;
- Scanner input = new Scanner(System.in);
- System.out.println("Enter first integer: ");
- x = input.nextInt();
- System.out.println("Enter second integer: ");
- y = input.nextInt();
- System.out.println("Enter third integer: ");
- z = input.nextInt();
- result = x * y * z;
- System.out.println("Product is: " + result);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement