#include
int main(){
int matrix[2][2],baris,kolom;
for (baris=0;baris<2 ;baris++ )
{
for (kolom=0;kolom<2 ;kolom++ )
{
printf("Masukan nilai [%d][%d] ",baris+1,kolom+1);scanf("%d",&matrix[baris][kolom]);
}
}
printf("\n");
for (baris=0;baris<2 ;baris++ )
{
for (kolom=0;kolom<2 ;kolom++ )
{
printf("%d\t ",matrix[baris][kolom]);
}
printf("\n");
}
getch();
}
No comments:
Post a Comment