What does the method do

Report a typo

What does the following method do?


public static long method(long a, long b) {
    if (b == 0) {
        return b;
    }
    return a + method(a, b - 1);
}
Select one option from the list
___

Create a free account to access the full topic