SeeTheLite 20 Junior Poster

factorial function:

in factorial(int x) {
int t;

for(t = x; t >-;t++)
     x = x*t;

return x;
}

I hope you read into function calling and creation.

kvprajapati commented: 1. Wrong approach to help - do not throws code. 2. Source code in post #5 - is it compiled & executed? -2