Hi. Can someone explain why this doesn't output to a console window using Dev-C++. system("PAUSE") doesn't work either. Thanks
Code:#include<iostream>
using namespace std;
int fn(int x, int y)
{
if(x==y)
return x;
if(x<y)
{
int temp;
temp=x;
x=y;
y=x;
}
return fn(x-y,y);
}
int main()
{
cout<<fn(27, 15);
cin.get();
return 0;
}