Browse Source

add converter mps to kph

remotes/origin/develop
Jonas Zitzmann 11 months ago
parent
commit
f8a17da00e
  1. 5
      src/convert_kph_to_mps.c
  2. 1
      src/convert_kph_to_mps.h

5
src/convert_kph_to_mps.c

@ -4,3 +4,8 @@ double converter_kph_to_mps(double kph){
double speed = kph / 3.6;
return speed;
}
double converter_mps_to_kph(double mps){
double speed = mps * 3.6;
return speed;
}

1
src/convert_kph_to_mps.h

@ -2,5 +2,6 @@
#define THEADMIRALS_CONVERT_KPH_TO_MPS_H
double converter_kph_to_mps(double kph);
double converter_mps_to_kph(double mps);
#endif //THEADMIRALS_CONVERT_KPH_TO_MPS_H
Loading…
Cancel
Save