#include <iostream>
using namespace std;
int fac(int n)
{
if(n==0)
return 1;
else
return n * fac(n-1);
}
int main()
{
cout<<"2 factorial este: ";
cout<<fac(2);
cout<<endl;
cout<<"3 factorial este: ";
cout<<fac(3);
cout<<endl;
cout<<"7 factorial este: ";
cout<<fac(7);
return 0;
}
poti sa-mi spui daca nu intelegi ceva sau daca ai vreo nelamurire