Kotlinlearncs.online LogoJava
Return to List

Homework: Add One Function

Created By: Geoffrey Challen
/ Version: 2020.8.0

For this homework you'll write a simple function, a reusable piece of code that allows us to build more complex computer programs.

We're going to start simple. Declare and implement a function called addOne. Your function should accept a single int argument and return the result of adding one to its argument.

Related Lessons

Stuck? You may find these lessons helpful: