Which modification enables the code to print 54321?

Given the code fragment:

Which modification enables the code to print 54321?

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;



Leave a Reply 4

Your email address will not be published. Required fields are marked *


Maxtor

Maxtor

Option A print 43210, correct Answer is B

renko

renko

Answer: B
insert: x–;