Solutions to the exercises will be available a week or two after the
exercises are posted on the Web.
11. |
int i = 0; do { // body i++; } while (i < 100); |
12. |
int i = 16; do { // body i++; } while (i <= 42); |
13. |
int i = 1; do { // body } while (++i < 100); |
14. |
int i = 1; do { // body } while (i++ < 100); |
15. |
int i = 0; do { int j = 0; do { // body i++; } while (j++ < 4); } while (++i < 13); |
16. |
do { // body } while (true); |
17. |
do { // body } while (false); |
18. |
int i = 19; do { // body x++ } while (i > x); |
19. |
int i = 42; do { // body i++; } while (i > 42); |
20. |
int i = 0; do { // body i *= 2; } while (i < 1024); |