Can a for loop be converted to a do while loop?

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.

Improve Answer Discuss the question "Can a for loop be converted to a do while loop?" Watch Question

First answer by ID1181753766. Last edit by ID1181753766. Question popularity: 9 [recommend question]

Research your answer:

Answers.com > Wiki Answers > Categories > Technology > Computers > Computer Programming > Can a for loop be converted to a do while loop?

Our contributors said this page should be displayed for the questions below. (Where do these come from)
If any of these are not a genuine rephrasing of the question, please help out and edit these alternates.
Use of while loop?  Size of inoculation loop?  Uses of for do while loop?  Differnce between For and while loop?