Posted by : Unknown Wednesday 17 June 2015

import java.util.Scanner;
class product 
{
    public static void main( String args[] )
    {
        Scanner input = new Scanner( System.in );
        int x,y,z,result;
        System.out.print( "Enter first integer: " ); 
        x = input.nextInt(); 
        System.out.print( "Enter second integer: " ); 
        y = input.nextInt(); 
        System.out.print( "Enter third integer: " ); 
        z = input.nextInt(); 
        result = x * y * z;
        System.out.printf( "Product is: %d\n", result );
    }
}

Output:

Leave a Reply

Subscribe to Posts | Subscribe to Comments

Welcome to My Blog

Translate

Popular Post

Total Pageviews

Blog Archive

- Copyright © Learning Java Program - Powered by Blogger -