Predict the output
int p[ ]={3,5,7,9,11,13,15,17,19,21};
for(i=8;i>=0;i=i-2)
{
System.out.println(p[i]);
}
Answers
Answered by
2
Answer:
It'll print
19
15
11
7
3
Please mark as brainliest
Explanation:
As it prints the positions starting from 8 in reverse order, it will print
p[8]
p[6]
...
p[0]
and stop.
Similar questions