어레이 사용 매트릭스 두개 만들고 거기에 로우 컬럼 하나씩 인풋해서 매칭한 춧자 뽑아서 계산하는 문제입니다
#include <iostream>
using namespace std;
int main(){
int i,j;
int m=3;
int n=3;
int A[m][n] = {{4,5,6},{7,8,9},{10,11,12}};//Matrix A
for (i=0; i<m; i++){//outer loop, read row by row
for(j=0; j<n; j++)//inner loop, read col by col
A[m][n] = 3*i+j;
double B[m][n] = {{2,2.5,3},{4,5,6},{5,7.5,9}};//Matrix B
for (i=0;i<m;i++)//read row by row
for(j=0; j<n; j++)//read column by column
B[m][n] = 1.5*i + 0.5*i*j;
int in_i, in_j; //input
cout<<"Enter the row and column to print : ";
cin>>in_i>>in_j;
//output
cout<<"A["<<in_i<<","<<in_j<<"]="< |