Computer Science, asked by dollyshaw270, 10 days ago

28. Convert the following segment into for() loop. int x = 2, y = 8; do { x++; y + = 2; System.out.println (x + “,” + y); } While (x < 20);​

Answers

Answered by prosunny8085
2

Answer:

for(int x = 2, y = 8; x < 20; x++,y + = 2)

{

System.out.println (x + “,” + y);

}

Similar questions