VIT Infotech Interview Question

Program to add the diagonal elements in a matrix