#include <cstdlib>
#include <iostream>

using namespace std;


int fakt(int y){
    if(y==1 ) return 1;
    else return fakt(y-1)*y;
}

int main(int argc, char *argv[])
{
    int sonuc=fakt(5);
    cout<<"faktoriyel(5)="<<sonuc<<endl;
    
    system("PAUSE");
    return EXIT_SUCCESS;
}

