Programming Languages
Saturday, April 28, 2012
9.21
Show how to imitate a for-statement in C/C++ with a do-statement.
int x = 0;
do
{
cout << y << endl;
y = y - 1;
x++;
}
while(x <= 10);
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment