Programming Languages
Sunday, April 29, 2012
9.22
Show how to imitate a while-statement in C/C++ with a for-statement.
for(int i = 0; i < 2; i++)
{
//stuff inside while loop
if(whilecondition=true)
i=0;
else
i=2;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment