Advertisement
vp0415

Ex1

Oct 5th, 2014
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.48 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3.  
  4. public class Ex1 {
  5.  
  6.     public static void main(String[] args) {
  7.        
  8.         int x;
  9.         int y;
  10.         int z;
  11.         int result;
  12.         Scanner input = new Scanner(System.in);
  13.         System.out.println("Enter first integer: ");
  14.         x = input.nextInt();
  15.         System.out.println("Enter second integer: ");
  16.         y = input.nextInt();
  17.         System.out.println("Enter third integer: ");
  18.         z = input.nextInt();
  19.         result = x * y * z;
  20.         System.out.println("Product is: " + result);
  21.  
  22.     }
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement