Triples

There are several possible algorithms for checking to see if a list forms a magic square. Though the details might be different, your algorithm probably involved identifying three numbers at a time and adding them. Call these sets of three numbers "triples".

picture that labels positions
  1. Write a block that finds the sum of the middle row of {12, 13, 14, 10, 18, 11, 17, 15, 16}
  2. The block lookup items () from () from the Getting Started for this lab might be useful here.
  3. Write a block that compares the sum of the middle row and the sum of the right column. Are they equal?
  4. Talk with Your PartnerDiscuss how you might write a program that compares all of the sums necessary for checking a magic square.