Pure Programmer
Blue Matrix


Cluster Map

Project: Physical Constants

Write a program that defines and prints the values for the following physical constants:

  • Speed of light in vacuum (c)
  • Planck constant (h)
  • Newton's gravitation constant (G)
  • Elementary charge (e)
  • Avogadro constant (L)
  • Boltzmann constant (k)

Use named constants for all values.

See: [[List of physical constants]]

Output
$ swiftc PhysicalConstants.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