diff options
author | Andinus <andinus@nand.sh> | 2021-08-25 20:09:09 +0530 |
---|---|---|
committer | Andinus <andinus@nand.sh> | 2021-08-25 20:09:09 +0530 |
commit | 7ec482f4126a6ac5bff7fffaa16c84210df13fac (patch) | |
tree | dcc70acb77a9d0a95fa4e6718a8bea687b96f03c /c/square-root/src | |
parent | 61d8d8a336ca9a74eaf0e77e6ec9ab59f8bccddb (diff) | |
download | exercism-7ec482f4126a6ac5bff7fffaa16c84210df13fac.tar.gz |
C: Add square-root exercise
Diffstat (limited to 'c/square-root/src')
-rw-r--r-- | c/square-root/src/square_root.c | 5 | ||||
-rw-r--r-- | c/square-root/src/square_root.h | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/c/square-root/src/square_root.c b/c/square-root/src/square_root.c new file mode 100644 index 0000000..a0232c7 --- /dev/null +++ b/c/square-root/src/square_root.c @@ -0,0 +1,5 @@ +#include "square_root.h" + +unsigned int square_root(unsigned int radicand) { + return radicand; +} diff --git a/c/square-root/src/square_root.h b/c/square-root/src/square_root.h new file mode 100644 index 0000000..849eb9e --- /dev/null +++ b/c/square-root/src/square_root.h @@ -0,0 +1,6 @@ +#ifndef SQUARE_ROOT_H +#define SQUARE_ROOT_H + +unsigned int square_root(unsigned int radicand); + +#endif |