@ -0,0 +1,7 @@
#include "convert_ton_to_mt.h"
double tons_to_megatons(double tons) {
return tons / 1000000.0; // 1 megaton = 1,000,000 tons
}
@ -0,0 +1,13 @@
#ifndef THEADMIRALS_CONVERT_TON_TO_MT_H
#define THEADMIRALS_CONVERT_TON_TO_MT_H
double tons_to_megatons(double tons);
#endif //THEADMIRALS_CONVERT_TON_TO_MT_H