Print squares and cubes#8532