Saturday, December 27, 2008

Learnings (BETINOL, lorebeth)

December 22- 26

No more class, its...... (ehem.. ehemmm.)whatt time is it.. its Christmas Vacation.

Happy Christmas to everyone.

Still learning:

The do-while Statement


- the do-while loop puts Boolean expression after the body of loop
- body will be always executed at least once
- if Boolean expression is TRUE, the loop will continue
- useful for selected applications
- example: read input and check if valid

Nested Loops

- often necessary for one loop to include another loop to solve a problem - need separate initializations, Boolean expressions, and increments

No comments: