mirror of
https://github.com/RTimothyEdwards/netgen.git
synced 2026-08-22 05:57:36 +02:00
Initial commit at Mon May 18 09:27:46 EDT 2015 by tim on stravinsky
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
#include <stdio.h>
|
||||
/* User programs should use <local/dbug.h> */
|
||||
#include "dbug.h"
|
||||
|
||||
int factorial (value)
|
||||
register int value;
|
||||
{
|
||||
DBUG_ENTER ("factorial");
|
||||
DBUG_PRINT ("find", ("find %d factorial", value));
|
||||
if (value > 1) {
|
||||
value *= factorial (value - 1);
|
||||
}
|
||||
DBUG_PRINT ("result", ("result is %d", value));
|
||||
DBUG_RETURN (value);
|
||||
}
|
||||
Reference in New Issue
Block a user