convert the following do while into for loop x =2,y=8 do { x++ y=+2 } System .out.prtintln x+"," +y while(x <20)
Answers
Answered by
2
Explanation:
int x=2, y=8;
for (x=1; x<20; x++)
{
y=+2;
}
System.out.println (x+","+y)
Similar questions