Changeset 115 for trunk/Softwares/Common/src
- Timestamp:
- Apr 20, 2009, 11:29:17 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Softwares/Common/src/c/func_factoriel.c
r108 r115 5 5 //-----[ Factoriel ]------------------------------------------------------- 6 6 7 #define mul(x,y) mul_soft(x,y) 8 7 9 unsigned int factoriel_recursif (unsigned int x) 8 10 { … … 10 12 return 1; 11 13 12 unsigned int res = mul _soft(x , factoriel_recursif (x-1));14 unsigned int res = mul(x , factoriel_recursif (x-1)); 13 15 14 16 return res; … … 21 23 while (x > 1) 22 24 { 23 res = mul _soft(res,x);25 res = mul(res,x); 24 26 x --; 25 27 }
Note: See TracChangeset
for help on using the changeset viewer.