#include <iostream>
#include <conio.h>
using namespace std;
int main(){
int baris, kolom, matriks[10][10];
cout<<"MENCARI MATRIKS SIMETRI"<<endl;
cout<<"--------------------------------"<<endl;
cout<<"Masukkan jumlah baris : ";
cin>>baris;
cout<<"Masukkan jumlah kolom : ";
cin>>kolom;
cout<<endl;
for(int i=0; i<baris; i++){
for(int j=0; j<kolom; j++){
cout<<"Masukkan baris "<<i+1<<" kolom "<<j+1<<" : ";
cin>>matriks[i][j];
}
}
cout<<endl;
for(int i=0; i<baris; i++){
for(int j=0; j<kolom; j++){
cout<<matriks[i][j]<<" ";
}
cout<<endl;
}
cout<<endl;
if(baris==kolom){
cout<<"Matriks simetri";
}else{
cout<<"Bukan matriks simetri";
}
getch();
return 0;
}
Jumat, 20 Mei 2011
MENCARI MATRIKS SIMETRI
Langganan:
Posting Komentar (Atom)
0 komentar:
Posting Komentar