c seeking language practice 26-- n recursive method!

#include <stdio.h> 
#include <stdlib.h>
 // Title: Method of n - recursive factorial 
int main () {
 int n;
 Long  int S, A;
 the while ( . 1 ) { 
the printf ( " Please enter the parameters n-: " ); 
Scanf ( " % D " , & n-); 
    S = . 1 ;
     for (A = . 1 ; A <= n-; A ++ ) 
    S = S * A; 
the printf ( " % D =% LD \ n-________________________________! \ n- " , n-, S); 
} 
return  0;
}
   

 

Guess you like

Origin www.cnblogs.com/gougouwang/p/11411965.html