Programming Fundamentals/Introduction/Swift

From Wikiversity
Jump to navigation Jump to search

hello.swift[edit | edit source]

// This program displays "Hello world!"
//
// References:
//     https://developer.apple.com/library/content/documentation/Swift/Conceptual/Swift_Programming_Language/GuidedTour.html

print("Hello world!")

Try It[edit | edit source]

Copy and paste the code above into one of the following free online development environments or use your own Swift compiler / interpreter / IDE.

See Also[edit | edit source]