notes/education/software development/ECE1400/Chapter 4 Exercises.md

26 lines
271 B
Markdown
Raw Permalink Normal View History

2024-09-16 00:49:50 +00:00
# 1.
a. `1 2`
2024-09-16 00:57:54 +00:00
b. `0`
2024-09-16 01:12:54 +00:00
c. `1`
2024-09-16 01:17:54 +00:00
d. `0`
2024-09-16 00:49:50 +00:00
# 3.
2024-09-16 01:34:27 +00:00
a. `1`
b. `-1`, `-2`
c. `-1`, `-1`
d. `1`, `2`
2024-09-16 00:49:50 +00:00
# 9.
2024-09-16 01:47:35 +00:00
a. `63 8`
2024-09-16 01:57:37 +00:00
b. `1 2 3`
c. `0 1 3`
2024-09-16 02:02:36 +00:00
d. `0 0 0`
2024-09-16 00:49:50 +00:00
# 11.
2024-09-16 02:02:36 +00:00
a. `0 2`
2024-09-16 02:07:36 +00:00
b. `4 11 6`
c. `0 8 7`
2024-09-16 02:12:36 +00:00
d. `15 4 5 4`
2024-09-16 02:02:36 +00:00
2024-09-16 00:49:50 +00:00
# 15.
2024-09-16 02:17:36 +00:00
a. `i = 2, j = 2`
2024-09-16 02:22:36 +00:00
b. `i = 1`, `j = 2`
2024-09-16 02:28:02 +00:00
c. `i = 1`, `j = 2`
d. `i = 1`, `j = 3`