hello world in swift

To print "Hello, World!" in Swift, you can use the following code:

main.swift
print("Hello, World!")
23 chars
2 lines

You can either run the code in a Swift file in Xcode or run it in a playground. In both cases, the output "Hello, World!" will be printed in the console.

gistlibby LogSnag