Thread: the main code
View Single Post
  #3   Spotlight this post!  
Unread 09-01-2008, 19:08
MARS-CJ's Avatar
MARS-CJ MARS-CJ is offline
Registered User
AKA: Carl Jalm
FRC #1523 (M.A.R.S.)
Team Role: Scout
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Jupiter, FL
Posts: 32
MARS-CJ is on a distinguished road
Send a message via AIM to MARS-CJ
Re: the main code

Quote:
Originally Posted by Roger View Post
The while loop continues to loop while the condition in the () remains true. It is checked at the beginning of the loop. (There is another kind of while loop that checks at the end of the loop.)
That'd be a do-while loop.

Code:
do {
    printf("Looping...\n");
} while(x == 2);