123 Eng

### Engineering the engineers™

Home
Source Codes
Engineering Colleges

Training  Reports
Seminar Reports
Placement Papers

Forums

Computer Science / IT
Electronics
Electrical
Mechanical
Chemical
Civil

CAT / MBA

GMAT / Foreign MBA
Latest Jobs

Displaying  Source Code(s)

 To Calculate Determinant of a Matrix Using Recursion -------------------------------------------------------------------------------- Description : This is a simple program implementing the concept of recursion to calculate the determinant of a matrix of any order. Code: //TO CALCULATE THE DETERMINANT OF MATRIX OF ANY ORDER USING RECURSION #include #include #include #include void main() { int determinant(int[5][5],int);// FUNCTIONS void read(int[5][5],int); void print(int[5][5],int); // PROTOYPES int a[5][5],l,n; int result; l1:clrscr(); cout<<" ENTER ORDER OF MATRIX(MAX. OF 4X4):"; cin>>l>>n; if(l!=n) { //TESTING CONDITION cout<<" SORRY!!!!!\n ONLY SQUARE MATRIX"; goto l1; } read(a,n); result = determinant(a,n); print(a,n); cout<<" THE DETERMINANT OF THE ABOVE MATRIX IS:"<>b[i][j]; } void print(int b[5][5],int m) { clrscr(); //FUNCTION FOR PRINTING MATRIX cout<<" MATRIX IS :- "; for(int i=0;i; for(int j=0;j

Contribute content or training reports / feedback / Comments
job placement papers