Kehidupan Dunia Maya

Just another WordPress.com weblog

Pengurangan Matrik

eri1#include
int main () {

int i, j;
int A[2][2], B[2][2], C[2][2];

A[0][0] = 4;
A[0][1] = 6;
A[1][0] = 7;
A[1][1] = 2;
B[0][0] = 3;
B[0][1] = 7;
B[1][0] = 8;
B[1][1] = 1;

cout<<“*********************************”<<endl;
cout<<“Nama : ERIADI”<<endl;
cout<<“Nim : 0708002010009″<<endl;
cout<<“Prodi : D-3 INSKOM” <<endl;
cout<<“=================================”<<endl;
cout<<“Hasil :”<<endl;
cout<<endl;

for(i=0; i<=1; i++)
{
for(j=0; j<=1; j++)
{
C[i][j] = A[i][j] – B[i][j];
cout<<C[i][j]<<endl;
}
cout<<endl;

}

return 0;
}

Iklan

Januari 24, 2009 - Posted by | Uncategorized

Belum ada komentar.

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout /  Ubah )

Foto Google+

You are commenting using your Google+ account. Logout /  Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout /  Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout /  Ubah )

Connecting to %s

%d blogger menyukai ini: