Closed 0xwal closed 3 years ago
Write a simple factorial function.
src/include/factorial.h
src/factorial.c
tests/factorial.test.cpp
uint64_t factorial(uint32_t number);
malloc
calloc
See Contribution Guide for more details.
Let me know if you are unable to write the tests, I will do that for you.
Also if you want any help let me know 😉.
Done 🚀
Factorial
Description:
Write a simple factorial function.
Details:
Header:
src/include/factorial.h
Source file:
src/factorial.c
Test file:
tests/factorial.test.cpp
Signature:
Restriction:
malloc
,calloc
, etc.Note:
See Contribution Guide for more details.
Let me know if you are unable to write the tests, I will do that for you.
Also if you want any help let me know 😉.