what is the output of this program snippet ?
for(int j = 8; j>=0; j=j-1)
System.out.println(j+"\t"); System.out.println("\n"+j);
Answers
Answered by
1
Explanation:
Loop goes down as
8
7
6
5
4
3
2
1
0 (because j>=0 says if not more than , but till equals zero the loop.runs)
Similar questions
India Languages,
2 months ago
Science,
4 months ago
Social Sciences,
11 months ago
Math,
11 months ago