write a Java program
to calculate the product of
three numbers
89.09
34.56
67.89
Answers
Answered by
1
import java.util.Scanner;
public class MultiplicationOfTwoNumbers {
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
System.out.println("Enter the value of the first number ::");
int a = sc.nextInt();
System.out.println("Enter the value of the first number ::");
int b = sc.nextInt();
System.out.println("Enter the value of the third number ::");
int c = sc.nextInt();
int result = a*b*c;
System.out.println("Product of the given three numbers is ::"+result);
}
}
Similar questions