#include "factorial.h" // above line not really necessary but it helps in ensuring // the signature in this file is consistent with the header // computes num! given an integer num as parameter int factorial( int num ) { int i; int result = 1; for( i = 1; i <= num; i++ ) result = result* i; return result; }