answersLogoWhite

0


Best Answer

#include<iostream.h>

main()

{

int a[3][3],i,j,count=0;

cout<<"\nenter the 3x3 matrix :\n";

for(i=0;i<3;i++)

{

for(j=0;j<3;j++)

{

cin>>a[i][j];

}

}

for(i=0;i<3;i++)

{

for(j=0;j<3;j++)

{

cout<<a[i][j]<<" ";

}

cout<<"\n";

}

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Program to Determine whether a given matrix is unit matrix or not?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you write a java program to find the transpose of the matrix for the given elements?

You basically write a nested for loop (one for within another one), to copy the elements of the matrix to a new matrix.


Algorithms to the given c plus plus programs?

The question is impossible to answer. You cannot determine an algorithm from a given program if the program is not actually given in the question. Please place the program in the discussion section.


What is matrix programming in C programming?

C Examples on Matrix OperationsA matrix is a rectangular array of numbers or symbols arranged in rows and columns. The following section contains a list of C programs which perform the operations of Addition, Subtraction and Multiplication on the 2 matrices. The section also deals with evaluating the transpose of a given matrix. The transpose of a matrix is the interchange of rows and columns.The section also has programs on finding the trace of 2 matrices, calculating the sum and difference of two matrices. It also has a C program which is used to perform multiplication of a matrix using recursion.C Program to Calculate the Addition or Subtraction & Trace of 2 MatricesC Program to Find the Transpose of a given MatrixC Program to Compute the Product of Two MatricesC Program to Calculate the Sum & Difference of the MatricesC Program to Perform Matrix Multiplication using Recursion


Transitive matrix-a matlab program?

taking an example of matrix x ,we find whether this matrix is transitive or not: x=[1 1 0 ;1 0 1;1 0 1] m=1; for i=1:3 for j=1:3 if x(i,j)==1 for k=1:3 if x(j,k)==1 if x(i,k)~=1 m=0; end end end end end end if m==1 disp('Given matrix is Transitive') else disp('Given Matrix is not Transitive') end


Determinant of test?

The determinant of test is usually a scalar quantity. The determinant of a matrix is used to test whether a given matrix has an inverse or not. It is used to test for the linear dependence of the vectors.


How do you write a program that calculates the sum of the matrix elements given numbers?

ring me and ill explain - 086 22222222222222227 ring me


Reflexive matrix for a given matrix?

The matrices that follow d rule of reflexivity is known as ref matrix


What is Portfolio matrix?

this is an asignment made in some schools or programs such as the International Bachaullarate. you need to accomplish 2 portfolios throughout the two years. they account for 20% of your final grade. ----------------------------------------------------------------------------------------------------- The portfolio matrix or BCG Matrix is a portfolio management tools that can be used to determine what priorities should be given in the product portfolio.


Could you write a assembly language program in tasm To check whether a given number present in a sequence of given memory location containing the string to be checked in 8086?

8086 assembly language program to check wether given number is perfect or not


Determine whether the given is a statistic or a parameter after taking the first exam 15 of the students dropped the class?

its a parameter


Lab manual in mca 1st sem from ignou?

write a program in C to check whether a given number is apalindrome or not


How to find x in a 2×2 matrix with a given determinant.?

For a matrix A, A is read as determinant of A and not, as modulus of A. ... sum of two or more elements, then the given determinant can be expressed as the sum