print entries of arrays on consecutive lines