@ -0,0 +1,6 @@
#include "convert_kg_to_ton.h"
double kg_to_tons(double kilograms) {
return kilograms / 1000.0; // 1 ton = 1000 kilograms
}
@ -0,0 +1,13 @@
#ifndef THEADMIRALS_CONVERT_KG_TO_TON_H
#define THEADMIRALS_CONVERT_KG_TO_TON_H
double kg_to_tons(double kilograms);
#endif //THEADMIRALS_CONVERT_KG_TO_TON_H