1 | #include <my_global.h> |
---|---|
2 | |
3 | int factorial ( |
4 | register int value) |
5 | { |
6 | DBUG_ENTER ("factorial"); |
7 | DBUG_PRINT ("find", ( "find %d factorial", value)); |
8 | if (value > 1) { |
9 | value *= factorial (value - 1); |
10 | } |
11 | DBUG_PRINT ("result", ( "result is %d", value)); |
12 | DBUG_RETURN (value); |
13 | } |
14 |