Hello World Program in Swift
print("Hello World!")
This simple script includes one function call print
with a string argument, Hello World!
.
If you compile and run this Swift program, you will get the following output:
Hello World!
What's Next
If you are interested in learning Swift programming, then go ahead and set up a development environment.
- Next Step: Swift development environment setup
C C++ C# Clojure Crystal D Dart Erlang F# Go Haskell Java Javascript Julia Kotlin Lua Python Rust Scala Typescript