Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Do loop:
- do
- {
- // Body
- } while (condition);
- // While loop:
- while (condition)
- {
- // body
- }
- The difference between while and do...while is that in the first case the body will never be executed if the condition is false to start with - whereas in the latter case it's always executed once before the condition is ever evaluated.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement