Can a for loop be converted to a do while loop? |
[Edit] |
Answer
for(i=0, i<10, i++)
{
...
}
or
int i=0
while(i<10)
{i++
...
}
yes, but as you can see the for loop simplifies the while loop in my example above.
First answer by ID1181753766. Last edit by ID1181753766. Question popularity: 9 [recommend question]
|
Research your answer: |
Can you answer other
questions about programming?



