Swift Program To Create A Function With No Argument And No Return Value

Swift Program To Create A Function With No Argument And No Return Value

// Swift program to create a function
// with no argument and no return value

import Swift

func sayHello() {
    print("Hello World")
}

sayHello()
Hello World

...Program finished with exit code 0
Press ENTER to exit console.
Share on:

Hi, I'm Ranjith a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coding Diksha. Here, I post about programming to help developers.

Leave a Comment