This happens because, when it comes to "printf", the value of a output variable "i" became zero.
You can put "printf" before "main".
More better to write recursion like this:
void recuot(int n)
{
if (n > 1)
recuot(n-1);
printf("%d\n",n);;
}
int main()
{
recuot(5);
return 0;
}