Write a java program to accept two numbers and print their product.
Answers
Answered by
4
import java.util.Scanner;
public class Exercise5 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.print("Input first number: ");
int num1 = in.nextInt();
System.out.print("Input second number: ");
int num2 = in.nextInt();
System.out.println(num1 + " x " + num2 + " = " + num1 * num2);
}
}
i hope it will helps you , if it please mark me as brainliest
Similar questions
Math,
3 months ago
Computer Science,
3 months ago
Social Sciences,
3 months ago
English,
7 months ago
English,
7 months ago
Math,
1 year ago
Math,
1 year ago