/****************************************************************************** * This program computes the distance in meters of a light-year. * * Copyright © 2020 Richard Lesh. All rights reserved. *****************************************************************************/ #undef NDEBUG #include #include using namespace std; static double const SPEED_OF_LIGHT = 299792458.; int main(int argc, char **argv) { cout << "Light-Year: " << SPEED_OF_LIGHT * 60. * 60. * 24. * 365.25 << " m" << endl; return 0; }