Question: In the following code, correct any errors that would prevent the program from compiling or running: public class Errors { public static void main (String[]
In the following code, correct any errors that would prevent the program from compiling or running:
public class Errors { public static void main (String[] args) {
int a, b;
boolean found;
System.out.print ("Enter the first interger: ");
a = console.nextInt();;
System.out.print1n();
System.out.print("Enter the second integer:");
b = console.nextInt();;
if a > a * b && 10 < b
found = 2 * a > b;
if found
a =3;
c=15;
if b
{
b = 0;
a = 1;
}
}
}
}
Please make copy paste available
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
