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
2
Answer:
for(int x = 2, y = 8; x < 20; x++,y + = 2)
{
System.out.println (x + “,” + y);
}
Similar questions