1 month ago
8 lines584 B
Exercises: lesson 2
- What happens with an empty input? Change the code so it handles that case with a clear message.
- Add a comment above each block explaining what it does, in your own words.
- Explain the example to someone who hasn't taken the course. Which part was hardest to explain?
- Rewrite the main part so it runs twice with two different inputs, without copying the code.
- Run
where.sqland change one value. Write down what you expect, then run it again and compare. - Add a check that prints a warning when a result looks wrong (negative, empty, too big).