Identify the purpose!

1
2
3
4
5
6
unsigned int Func(unsigned int A, unsigned int B){
    if(A==0)
        return B;
    else
        return B+Func(A-1,B);
}

What does the above recursive function, written in c++, calculate ?

×

Problem Loading...

Note Loading...

Set Loading...