PRG 215 Week 1 Individual Fix the Error

PRG 215 Entire Course Link

https://uopcourses.com/category/prg-215/
PRG 215 Week 1 Individual: Fix the Error
Use the following code:

 

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);

            }

}

 

Find and fix the error.

Compile and run the fixed program.

Take a screenshot of the result.

Paste your screenshot into a Microsoft® Word document that includes the following:

The new fixed source code
At least 3 error messages you observed (include screenshots of the messages)
Submit your document using the Assignment Files tab.
Powered by