Sum 1 through 10
Build a counted loop and print 55.
Complete the loop so $t2 accumulates every integer from 1 through 10, then let the supplied syscalls print the result and exit.
Learning goals
- Use a counter and accumulator
- Choose a terminating branch
- Preserve the required output
Tests
- Program exits cleanly
- $t2 contains 55
- Terminal prints 55
- Solution uses a BLE loop
- 1 hidden grading test