The following program has syntax errors that prevents the program from compiling. Find and fix the errors.
import java.util.Scanner;public class SyntaxError{ public static void main(String[] args) { System.out.println(Enter two numbers to multiply.) Scanner keyboard = new Scanner(System.in); n1 = keyboard.nextInt(); n2 = keyboard.nextInt(); int product = n1 * n2; System.out.println("The product is " + product); }}
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.