for(i=0;i<=n-1;i++)
{
trace+=a[i][i];
for(j=0;j<=m-1;j++)
{
norm+=a[i][j]*a[i][j];
}
}
printf("Trace of the matrix :%d\n ",trace);
printf("Norm of the matrix :%d ",sqrt(norm));
}
else
printf("Trace and norm do not exist");
getch();
}