382 B
382 B
Adding numbers
Functions take values and return values.
Exercises
Exercise 2.1 — add
Implement add(a, b) so that it returns the sum of its arguments.
Hints
Exercise 2.1 (add) — nudge
Which operator combines two numbers?
Exercise 2.1 (add) — near-solution
Return a + b.