0xwal / c-scratch

Essential programming tasks from scratch as a challenge and exercise. 🧩
MIT License
4 stars 1 forks source link

Factorial Implementation. #2

Closed 0xwal closed 3 years ago

0xwal commented 3 years ago

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:

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 😉.

0xwal commented 3 years ago

Done 🚀