#include<iostream.h>
main()
{
long double A[3][3];
int i,j;
cout<<"MATRIKS ORDO 3x3\n";
for (i=0;i<3;i++)
for (j=0;j<3;j++)
{
cout<<"Masukkan bilangan untuk baris ke-"<<i+1<<" kolom ke-"<<j+1<<" : ";
cin>>A[i][j];
}
cout<<"MATRIKS A :\n";
for (i=0;i<3;i++)
{
for (j=0;j<3;j++)
{
cout<<A[i][j]<<"\t\t";
}
cout<<endl;
}
return 0;
}
main()
{
long double A[3][3];
int i,j;
cout<<"MATRIKS ORDO 3x3\n";
for (i=0;i<3;i++)
for (j=0;j<3;j++)
{
cout<<"Masukkan bilangan untuk baris ke-"<<i+1<<" kolom ke-"<<j+1<<" : ";
cin>>A[i][j];
}
cout<<"MATRIKS A :\n";
for (i=0;i<3;i++)
{
for (j=0;j<3;j++)
{
cout<<A[i][j]<<"\t\t";
}
cout<<endl;
}
return 0;
}
{ 0 komentar... Views All / Send Comment! }
Posting Komentar