From eee8c709f965413c379ec9f4b67717681beb10b5 Mon Sep 17 00:00:00 2001 From: Leon Wolf Date: Thu, 8 Feb 2024 18:25:57 +0100 Subject: [PATCH] Commit convert CM in M --- src/convert_CM_in_M.c | 7 +++++++ src/convert_CM_in_M.h | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 src/convert_CM_in_M.c create mode 100644 src/convert_CM_in_M.h diff --git a/src/convert_CM_in_M.c b/src/convert_CM_in_M.c new file mode 100644 index 0000000..94444be --- /dev/null +++ b/src/convert_CM_in_M.c @@ -0,0 +1,7 @@ + +#include "convert_CM_in_M.h" +#include + +float cm_to_meter(float cm) { + return cm / 100.0; +} diff --git a/src/convert_CM_in_M.h b/src/convert_CM_in_M.h new file mode 100644 index 0000000..49b0383 --- /dev/null +++ b/src/convert_CM_in_M.h @@ -0,0 +1,7 @@ + +#ifndef THEADMIRALS_CONVERT_CM_IN_M_H +#define THEADMIRALS_CONVERT_CM_IN_M_H + +float cm_to_meter(float cm); + +#endif //THEADMIRALS_CONVERT_CM_IN_M_H