Im trying to add odd numbers recursively from n to m but its not working . im sure its in the recursive logic on how im passing the arguments or something.
public static int OddSum(int low, int up,int total)
{
if(low==up)
{
return up;
}else
{
low+=2;
return total += OddSum(low,up,total+low);
}