Kotlinlearncs.online LogoJava
Return to List

Solve: Sorta Sum

Imported By: Geoffrey Challen
/ Version: 2021.6.0

Given 2 ints, return their sum. However, sums in the range 10..19 inclusive, are forbidden, so in that case just return 20.

int sortaSum(int first, int second) {
return 0; // You may need to remove this starter code
}

Related Lessons

Stuck? You may find these lessons helpful: