I just wrote a function recursively so I can understand how recursion works, but the logic in this still escapes me. Why does this function display 55 when it should display 19, 18, 17, 16 ... 0?
1 2 3 4 5 6 7 8 9
int count (int num)
{
if (num <= 0)
return 0;
elsereturn count (num - 1) + num;
}