Pure Programmer
Blue Matrix


Cluster Map

Project: Min/Max Functions

Write two functions that each take two integer arguments. One called imin() that returns the smaller of the two integer arguments and another called imax() that returns the larger of the two integer arguments. Write a main() method to test your functions.

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