0xWaleed/c-scratch

Factorial Implementation.

0xwal opened this issue · 1 comments

0xwal commented

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:

uint64_t factorial(uint32_t number);

Restriction:

  • Do not use any builtin string functions.
  • Only allowed to use memory functions ex: 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 😉.

Done 🚀