Given the code fragment:
Which modification enables the code to print 54321?
A.
Replace line 6 with System, out. print (–x) ;
B.
At line 7, insert x –;
C.
Replace line 6 with –x; and, at line 7, insert system, out. print (x);
D.
Replace line 12 With return (x > 0) ? false: true;
Option A print 43210, correct Answer is B
B
Answer: B
insert: x–;
B