Sorry to delete the previous version of this program, but this one is much more concise and sophisticated. I have written this program for a 3*3 matrix, but if you want to change it, just enter additional variables to store the order of the matrix and then replace the "3"s of the program with them as needed. It's easy. So here we go:
#include
#include
void swap(int *x,int *y);
main()
{
int i,j,k,m,n;
int matrix[3][3];
printf("Enter the matrix: \n\n");
for (i=0;i<3;++i)
{
printf("\nEnter #%d row: ",(i+1));
for (j=0;j<3;++j)
scanf("%d",&matrix[i][j]);
}
printf("\n\n");
for (j=0;j<3;++j)
{
for (i=0;i<3;++i)
if (i>j)
swap(&matrix[i][j],&matrix[j][i]);
}
printf("The transposed matrix is: \n\n");
for (i=0;i<3;++i)
{
for (j=0;j<3;++j)
printf("%4d",matrix[i][j]);
printf("\n\n");
}
}
void swap(int *x,int *y)
{
int t=*x;
*x=*y;
*y=t;
return;
}
You basically write a nested for loop (one for within another one), to copy the elements of the matrix to a new matrix.
Write a program in c++ that take input in a integer matrix of size 4*4 and find out if the entered matrix is diagonal or not.
This is a directive, not a question.
A c program is also known as a computer program. A singular matrix has no inverse. An equation to determine this would be a/c=f. <<>> The determinant of a singular matix is zero.
By using those two functions in your code.
You basically write a nested for loop (one for within another one), to copy the elements of the matrix to a new matrix.
Sp[[Q/Write a 8085 microprocessor program to find A inverse and A transpose if A is a 3x3 matrix|Answer]]ell chec[[Q/Write a 8085 microprocessor program to find A inverse and A transpose if A is a 3x3 matrix&action=edit&section=new|Answer it!]]k your answe[[Q/Discuss:Write a 8085 microprocessor program to find A inverse and A transpose if A is a 3x3 matrix|Disc]][[help/answering questions|guidelin]]Spell check your answeresussionr[[help/signing in|full benefits]] Save C[[Q/Write a 8085 microprocessor program to find A inverse and A transpose if A is a 3x3 matrix|Write a 8085 microprocessor program to find A inverse and A transpose if A is a 3x3 ]][[Q/Write a 8085 microprocessor program to find A inverse and A transpose if A is a 3x3 matrix&action=edit&section=new|Answering 'Write a 8085 microprocessor program to find A inverse and A transpose if A is a 3x3 matrix?']]matrix?ancel[[Q/How many animals are in West Texas|How many animals are in West Texas?]][[Q/How do you increase the number of four wheelers vehicles for servicing in a Service workshop|How do you increase the number of four wheelers vehicles for servicing in a]][[Q/How do you increase the number of four wheelers vehicles for servicing in a Service workshop|How do you increase the number of four wheelers vehicles for servicing in a Service workshop?]] Service workshop?[[Q/How do you increase the number of four wheelers vehicles for servicing in a Service workshop|How do you increase the number of four wheelers vehicles for servicing in a Service workshop?]]More Q&A
i cant write
write a program to multily 3*3 matrix.
how to write a program for matrix multiplication in microprocesspr
Write a program in c++ that take input in a integer matrix of size 4*4 and find out if the entered matrix is diagonal or not.
A C program to square matrix is a math problem. In the math problem you write down all the outer boundary values of matrix in a circle, then write down the inner value.
Yes, do write. That's what you always have to do when you have got a homework-program.
This is a directive, not a question.
#include<
matrix
bgfygfrhjyuyhh