Print array elements horizontally.