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