Computer Science, asked by jaiPanjwani345, 7 months ago

Give the output of the following [2]

int y= 4;
for (; y<= 20; y += 2)
System.out.println(y);
System.out.println(y);

Answers

Answered by rkk123
3

Answer:

4

6

8

10

12

14

16

18

20

22 because of the last System.out.println(y);

Similar questions