//Sakarya University
//Programmer Batuhan Duzgun
#include <iostream>
#include<conio.h>
using namespace std;
int n,m,i,j;
int A[100][100], B[100][100] ;
int main()
{
cout<< “enter the line number of matrix:”;
cin>> n;
cout<< “enter the column number of matrix:”;
cin>> m;
for(i=1;i<=n;i++)
{
for(j=1;j<=m;j++)
{
cout<< “enter the members of matrix:”;
cin>> A[i][j];
} }
for(i=1;i<=n;i++)
{
for(j=1;j<=m;j++)
{
B[j][i]=A[i][j] ;
} }
cout<< “transpoze of matrix:”;
for(i=1;i<=n;i++)
{
for(j=1;j<=m;j++)
{
cout<< “\n”<<B[j][i] ;
}
cout<<”\n”;
}
getch(); return 0;
}


Alıntı ile Cevapla
TÜMGENERAL
TUĞGENERAL


Bu Konuyu Paylaşın !