What can you put at line 4 so that the output of the program will be 10?
class ExamPrep {
public static void main(String[] args){
int a = 3;
// LINE 4
System.out.println(result);
}
}
Choose the correct answer:
A. int result = a + 2 * a - 1;
B. int result = (a + 2) * (a - 1);
C. int result = (a + 2 * a) - 1;
D. int result = a + (2 * a - 1);.