| 
 | 
 
Package com.tuxing; 
 
Public class jiecheng { 
 
Public static void main (string args []) { 
 
                 //the first method 
INT S = 0; 
INT Q = 1; 
For (INT i = 1; i <= 10; i ++) { 
q = q * i; // The front Q is the step-by-step number of this number, the Q is the maximum multiplication of this step 
S + = q; // to the current value 
} 
System.out.println ("1! +2! +3! +4! +5! +6! +7! +8! +9! +10! =" + S); 
 
 } 
} |   
 
 
 
 |