What must the initialization be so that the following fragment prints out the integers -3 -2 -1?
for( ; j<0 ;j++)
System.out.print( j + " ");
System.out.print();
Answers
Answered by
0
initialize j = -3
int j = -3 -3<0 condition True
j value printed j = -3
Then j gets incremented ...
- 2 < 0
And it goes on untill 0 < 0
Similar questions
English,
3 months ago
Political Science,
3 months ago
Social Sciences,
3 months ago
Math,
7 months ago
History,
7 months ago
History,
10 months ago