Pure Programmer
Blue Matrix

Cluster Map

Project: Light-Year Distance

Write a program that computes the distance light can travel in one [[Julian year]]. This is known as a [[light-year]]. Light travels at the speed of 299,792,458 m/s and a Julian year is 365.25 days long.

$ g++ -std=c++17 LightYearDistance.cpp -o LightYearDistance -lfmt $ ./LightYearDistance Light-Year: 9.46073e+15 m