I came with a problem, and during the solution I got the following function:
bool interesting(int n){
for(int i = 1; i <= n; i++){
if(sum(n+1, 0) < sum(n, 0)
return true;
}
}
This is, given a number n to verify if the sum(n+1,0) of the next number is smaller than the previous. However I wonder if the function is going to return true or false, since I have multiple i's to be looped.