Skip to main content

Practice · 1 of 5

Sum of two numbers

CHALLENGE
Difficulty: beginner+25 XP

Implement add(int a, int b) so it returns the sum. One line of real code — the point is to make the compiler's type checking work for you.

Back to lesson: Practice: Practice: Types at Work