diff --git a/misc/factorial_large_number.c b/misc/factorial_large_number.c index 9abd4e0f..56e92d39 100644 --- a/misc/factorial_large_number.c +++ b/misc/factorial_large_number.c @@ -1,10 +1,15 @@ +/** + * @file + * Compute factorial of arbitrarily large numbers by + * storing individual digits in a byte. + */ #include #include #include #include "function_timer.h" /** - * dynamically large number + * dynamically large number **/ typedef struct _large_num { @@ -51,7 +56,7 @@ void add_digit(large_num *num, unsigned int value) } /** - * multiply large number with another integer and + * multiply large number with another integer and * store the result in the same large number **/ void multiply(large_num *num, unsigned long n) @@ -79,6 +84,9 @@ void multiply(large_num *num, unsigned long n) } } +/** + * main function + */ int main(int argc, char *argv[]) { int number, i;