Computer Science, asked by alonegirl5960, 3 months ago

wrtite a program in java to multiply three numbers and store in other variables .
Tell me fast​

Answers

Answered by lakshay5016
1

Explanation:

import java.util.Scanner;

public class Demo {

public static void main(String[] args) {

/* This reads the input provided by user

* using keyboard

*/

Scanner scan = new Scanner(System.in);

System.out.print("Enter first number: ");

// This method reads the number provided using keyboard

int num1 = scan.nextInt();

System.out.print("Enter second number: ");

int num2 = scan.nextInt();

// Closing Scanner after the use

scan.close();

// Calculating product of two numbers

int product = num1*num2;

// Displaying the multiplication result

System.out.println("Output: "+product);

}

}

Output:

Enter first number: 15

Enter second number: 6

Output: 90

Answered by angadprajapati95
1

Answer:

X=2

Y=4

Z= 1

Explanation:

V=X*Y*Z

print('V')

Similar questions