summary refs log tree commit diff stats
path: root/c/square-root/src
diff options
context:
space:
mode:
Diffstat (limited to 'c/square-root/src')
-rw-r--r--c/square-root/src/square_root.c5
-rw-r--r--c/square-root/src/square_root.h6
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