how to print a square in console