207k views
0 votes
What is the output of

int j = 0;
while( j < 5)
{
System.out.println(" " + j);
j = j + 1;
}

2 Answers

4 votes

The answer is 5j - 5r +5

User Matthew Kruskamp
by
5.9k points
6 votes
0
1
2
3
4

Those are the outputs
User Andrew McGivery
by
5.8k points