C program to print triangle, pyramid, geometrical shapes and star patterns