Pure Programmer
Blue Matrix


Cluster Map

Project: Absolute Value

Write a program to compute [[Absolute_value|absolute values]]. The absolute value of a number |x| is x if x is positive and -x if x is negative.

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