Write A C Program To Accept A Matricx Of Order

  • June 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Write A C Program To Accept A Matricx Of Order as PDF for free.

More details

  • Words: 212
  • Pages: 1
/* * * *

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