// Messages.swift Copyright (c) Kari Laitinen // http://www.naturalprogramming.com // 2014-10-01 File created. // 2015-10-17 Last modification. import Foundation // The following is a simple function that will be called // twice from the main program. func print_message() { print( "\n This is a function named \"print_message()\"." ) print( " Functions usually contain several statements. " ) print( " Let us now return to the calling program." ) } // Next lines are the main program in this file. print( "\n THE FIRST STATEMENT IN MAIN PROGRAM." ) print_message() print( "\n THIS IS BETWEEN TWO FUNCTION CALLS." ) print_message() print( "\n END OF MAIN PROGRAM.\n\n" )