function with parameter swift

func fullName(fName:String,lName:String) {
let myFullName:String = "\(fName) \(lName)"
print(myFullName)

}

//calling the parameter
fullName(fName: "Hi", lName: "Hello")

/****************/
non return type functions are called void functions 
and return type functions are called non-void functions
Previous
Next Post »