#include <iostream.h>
void main ()
{
int tabel [3][3];
int i,j;
cout<<"input matriks 3x3"<<endl;
cout<<" "<<endl;
cout<<"================="<<endl;
for (i=0;i<=2;i++)
{
for (j=0;j<=2;j++)
{
cin>>tabel [i][j];
}
cout<<" "<<endl;
}
for (i=0;i<=2;i++)
{
for (j=0;j<=2;j++)
{
cout<<tabel [i][j]<<" ";
}
cout<<" "<<endl;
}
for (i=0;i<=2;i++)
{
for (j=0;j<=2;j++)
{
cin>>tabel [i][j];
}
cout<<" "<<endl;
}
for (i=0;i<=2;i++)
{
for (j=0;j<=2;j++)
{
cout<<tabel [i][j]<<" ";
}
cout<<" "<<endl;
}
cout<<"================="<<endl;
for (i=0;i<=2;i++)
{
for (j=0;j<=2;j++)
{
cin>>tabel [i][j];
}
cout<<" "<<endl;
}
for (i=0;i<=2;i++)
{
for (j=0;j<=2;j++)
{
cout<<tabel [i][j]<<" ";
}
cout<<" "<<endl;
}
for (i=0;i<=2;i++)
{
for (j=0;j<=2;j++)
{
cin>>tabel [i][j];
}
cout<<" "<<endl;
}
for (i=0;i<=2;i++)
{
for (j=0;j<=2;j++)
{
cout<<tabel [i][j]<<" ";
}
cout<<" "<<endl;
}
}
Tidak ada komentar:
Posting Komentar