func invite(allGuests: [String]) { for guest in allGuests { invite(guest: guest) } print("Dear \(guest),") print("I'd love for you to come to my birthday party!") print("It's going to be this Saturday at my house.") print("I hope that you can make it!") print("Love, Brenna\n") } let friends = ["Cathy", "Maddie", "Julia", "Sophia", "Asher"] invite(allGuests: friends)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)