Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Section A.12. Chapter 12

A.12. Chapter 12

A.12.1. Exercise 1 solution

script countMe
    property X : 0

    set X to X + 1
    log "I've been called " & (X as string) & " times"
end script

repeat 10 times
    run countMe
end repeat

A.12.2. Exercise 2 solution

on surfaceArea given radius:r
        return 4 * pi * r * r
end surfaceArea


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint