Your program should loop continuously until zero is entered as the board size. N will be no larger than 30. A 3x3 board contains 14 squares of any size. A 4x4 board contains 30 squares of any size. Some notes have other common names.
Most music includes chords, or groups of notes played at the same time.
Many of these chords are given standard names. For example, the notes C, E, and G sounded together are called a C Major chord. While the particular C, E and G in the chord are frequently close together on the keyboard, for our purposes here, any C, E, and G played at the same time will constitute a C Major chord. It is the spacing between the notes on the keyboard that distinguishes a Major chord from others. Another frequently encountered chord is the Minor chord.