Currently the program prints the output in form of blocks of fix size 6,which looks too scattered if numbers are small and also can't fit larger numbers. Is it possible to generate the output in the form of square matrix which is compact as well as flexible.