Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  factorial
Language: C/C++
Code:
int factorial ( int x ) {  
02.    int ret = 1;  
03.    for ( int i = 2; i <= x; i++ ) {  
04.        ret = ret * i;  
05.    }  
06.    return ret;  
07.}  
Comments: