Project: Incrementing a Variable
Write a program that creates an integer variable named x
with the value 1. Print the variable. Then increment the variable by 1 then 2 then 3, printing it after each change. Then decrement the variable three times, by 3 then 2 then 1, printing the value each time.
Output
$ swiftc IncrementingAVariable.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)