#include
#include
using namespace std;
int main(int argc, char *argv[])
{
double a[10][10];
double b[10][10];
double hasil[10][10];
int i,j,bb,k,p;
cout<<"inputkan banyak baris: ";cin>>bb;
cout<<"inputkan banyak kolom: ";cin>>k;
//A
cout<<"INPUT ELEMEN MATRIK A: "<
cout<<"A["<<(i+1)<<","<<(j+1)<<"]=";cin>>a[i][j];
}
cout<<"TAMPIL MATRIK A: "<
for (j=0;j
cout< }
cout<
//B
cout<<"INPUT ELEMEN MATRIK B: "<
cout<<"B["<<(i+1)<<","<<(j+1)<<"]=";cin>>b[i][j];
}
cout<<"TAMPIL MATRIK B: "<
for (j=0;j
cout< }
cout<
cout<
if(p==1)
{
for (i=0;i
cout<<"hasil akhir= "<
for (j=0;j
cout<
cout<
}
else if(p==2)
{
for (i=0;i
cout<<"hasil akhir= "<
for (j=0;j
cout<
cout<
}
else if(p==3)
{
for (i=0;i
cout<<"hasil akhir= "<
for (j=0;j
cout<
cout<
}
else
cout<<"ERROR"<
system("PAUSE");
return EXIT_SUCCESS;
}
0 komentar:
Posting Komentar