/* * * *
Write a C program to accept a matricx of order MxN and find the trcae and * normal of a matrix HINT:Trace is defined as the sum of main diagonal * elements and Normal is defined as squre root of the sum of all * the elements */
#include <stdio.h> #include <math.h> void main () { static int ma[10][10]; int i,j,m,n,sum=0,sum1=0,a=0,normal; printf ("Enter the order of the matrix\n"); scanf ("%d %d", &m,&n); printf ("Enter the ncoefficients of the matrix \n"); for (i=0;i<m;++i) { for (j=0;j
Related Documents