Write a C Program to print the diagonal of a matix and get the sum of all diagonal items