Hello World Program in Swift
In this tutorial, we will learn how to write a Hello World program in Swift language. We will go through each statement of the program.
Swift Program
print("Hello, World!")
Output
Hello, World!
Working of the "Hello, World!" Program
print("Hello, World!")
This line prints the string "Hello, World!" to the console. Theprint
function in Swift outputs text followed by a new line.