Convert the following do-while loop to the correspond for loop.
int x=2,y=50;
do
{
y-=x++;
}
Answers
Answered by
0
Answer:
for(int x = 2; int y = 50 ; y=y-x++)
or
for(int x = 2 ; int y = 50 ; y-=x++)
Similar questions