for(int i=3; i>=1;i--) { System.out.print(3-i); } Write the output of the program segment.(choose the correct answer)
•0 1 2
•1 2 3
•2 3 4
•None of the above.
Answers
Answered by
1
Answer:
None of the above
Explanation:
Index starts from 0
So it should print 3-0 = 3 as first output.
Similar questions