Code:
#include<iostream>
#include<conio.h>

using namespace std;

int fac(int n)
{
  return n*fac(n-1);
}
    

int main()
{
     fac(3); 
}
running the following program in bloodshed dev C++, the output just flashes for a milisecond . tried getch() and all other possible stuff.