diff --git a/src/convert_kph_to_mps.c b/src/convert_kph_to_mps.c new file mode 100644 index 0000000..02b5c60 --- /dev/null +++ b/src/convert_kph_to_mps.c @@ -0,0 +1,6 @@ +#include "convert_kph_to_mps.h" + +double converter_kph_to_mps(double kph){ + double speed = kph / 3.6; + return speed; +} \ No newline at end of file diff --git a/src/convert_kph_to_mps.h b/src/convert_kph_to_mps.h new file mode 100644 index 0000000..467bc72 --- /dev/null +++ b/src/convert_kph_to_mps.h @@ -0,0 +1,6 @@ +#ifndef THEADMIRALS_CONVERT_KPH_TO_MPS_H +#define THEADMIRALS_CONVERT_KPH_TO_MPS_H + +double converter_kph_to_mps(double kph); + +#endif //THEADMIRALS_CONVERT_KPH_TO_MPS_H