Computer Science, asked by sureshkitam, 4 months ago

Write a java program to accept two numbers and print their product.​

Answers

Answered by nehaaamirtharaj
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