diff --git a/src/convert_M_in_KM.c b/src/convert_M_in_KM.c new file mode 100644 index 0000000..66ef45a --- /dev/null +++ b/src/convert_M_in_KM.c @@ -0,0 +1,7 @@ + +#include "convert_M_in_KM.h" +#include + +double meter_to_kilometer(double meter) { + return meter / 1000.0; +} diff --git a/src/convert_M_in_KM.h b/src/convert_M_in_KM.h new file mode 100644 index 0000000..9dc3232 --- /dev/null +++ b/src/convert_M_in_KM.h @@ -0,0 +1,7 @@ + +#ifndef THEADMIRALS_CONVERT_M_IN_KM_H +#define THEADMIRALS_CONVERT_M_IN_KM_H + +double meter_to_kilometer(double meter); + +#endif //THEADMIRALS_CONVERT_M_IN_KM_H