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