Computer Science, asked by kukkup727, 5 months ago

2. Rewrite the following code using for loop:
int x = 1;
start :
cout << x;
x = x+5;
if(x<=50)
goto start;​

Answers

Answered by AnindaBasu
1

Answer:

int x;

for(x=1;x<=50;x=x+5)

{

cout<<x;

}

is the correct code

Similar questions