Question d’entretien chez Codilar Technologies

WAP to match the pattern without using built in function. a) program should accept only odd number. Pattern was like Square with diagonal and in center of the square here was 0.