For any line of code below that contains one or more syntax errors. fomoletetv U
ID: 3668536 • Letter: F
Question
For any line of code below that contains one or more syntax errors. fomoletetv Ult entire line of code. correcting al errors on the line immediately to the rtght of the Incorrect code. Only correct revisions will receive full credit. There are six errors. For multiple choice questions. clearly circle your answer. Each question is worth 1 point. The . java extension on a file means that the file: can be run as-is on Loki is produced by the ja vac compiler contains Java source code. can be run as-is by the Java Virtual Machine.Explanation / Answer
PART-1
import java.util.Scanner;
public class ErrorReWrittenJava {
public static void main(String[] args) {
int A,B,C;
Scanner get=new Scanner(System.in);
System.out.println("Enter two numbers");
A=get.nextInt();
B=get.nextInt();
System.out.println("Enter one numbers");
C=get.nextInt();
if((A+B+C)%2==0)
{
System.out.println(A+B+C+" is the even number");
}
}
}
PART2 )
.java extention means that it contains java source code.
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.