convert in do while loop
int x,c;
for(x=10,c=20;c>=20;c=-2)
x++
Answers
Answered by
2
Answer:
Following code is a while loop for the above statement in Javascript
Var X = 10;
Var C = 20;
function update(X, C) {
While( C>20, C = - 2)
Return X++
}
Explanation:
Hope it helps
Mark as brainliest
Answered by
0
Question:
Convert the following segment into an equivalent do loop.
int x,c;
for(x=10,c=20;c>10;c=c-2)
x++;
Solution:
int x, c;
x=10;
c=20;
do
{
x++;
c=c-2;
} while(c>10);
Similar questions