Computer Science, asked by swayamsinghania53, 3 months ago

Convert the following do-while loop to the correspond for loop.
int x=2,y=50;
do
{
y-=x++;
}​

Answers

Answered by steves521733
0

Answer:

for(int x = 2; int y = 50 ; y=y-x++)

or

for(int x = 2 ; int y = 50 ; y-=x++)

Similar questions