13
Dolphin Smalltalk: Exercises
nControl flow
¨before:do:
¨after:do:
¨beside:do
n
n// C# code (imagine dot product of vectors)
nstring[] books=new string[]{
n "Book1","Book2","Book3"
n};
nstring[] authors=new string[]{
n "Author1","Author2","Author3"
n};
n
nfor (int i=0;i<books.Length;i++)
n Console.WriteLine("Book: {0} Author: {1}",
n books[i],authors[i]);
n
n