Membuat Matrik Dengan C++

Contoh membuat Matrik denganCara mengatasi Install DotNet 3.5 Windows 8. Read more ... » C+

#include <conio>
#include <iostream>
void main()
{
	int A[10][10];
	int B[10][10];
	int jml[10][10];
	int i,j;
	for(i=1;i<=2;i++)
		{
			for(j=1;j<=2;j++)
				{
					cout<<"Masukan nilai pada Matrik A Baris "<<i<<" Kolom "<<j<<" = ";
					cin>>A[i][j];
				}
			cout<<endl;
		}
	cout<<endl<<endl;
		for(i=1;i<=2;i++)
		{
			for(j=1;j<=2;j++)
				{
					cout<<"Masukan nilai pada Matrik B Baris "<<i<<" Kolom "<<j<<" = ";
					cin>>B[i][j];
				}
			cout<<endl;
		}
	clrscr();
	cout<<"Matrik A "<<endl;
		for(i=1;i<=2;i++)

		{
			for(j=1;j<=2;j++)
				{
					cout<<A[i][j]<<" ";
				}
			cout<<endl;
		}
	cout<<endl<<"Matrik B "<<endl;
		for(i=1;i<=2;i++)
		{
			for(j=1;j<=2;j++)
				{
					cout<<B[i][j]<<" ";
				}
			cout<<endl;
		}
getch();
}
Posted in C++, Programing and tagged .