Swift Hello World Program

Swift Hello World Program

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!")


Hello, World!

Working of the "Hello, World!" Program

  1. print("Hello, World!")
    This line prints the string "Hello, World!" to the console. The print function in Swift outputs text followed by a new line.