Code:
#include <iostream>
using namespace std;
void count ( int x )
{
    cout << x << endl;
    if ( x > 0 ) count ( x - 1 );
}
int main()
{
    count ( 10 );
}
There is no problem with the code, I just have a question about it. How come that one counts down from 10 to 0, but if you put the "cout" after the "if," it counts up from 0 to 10? Is it because the condition is stated before the variable? Any help would be appreciated.