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.

Output
$ swiftc LightYearDistance.swift -I . -L . -lUtils error: link command failed with exit code 1 (use -v to see invocation) ld: library not found for -lUtils clang: error: linker command failed with exit code 1 (use -v to see invocation)

Solution