can anyone help me with this??
i am trying to display an inputted 3-D array
here is my code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#include<iostream>
usingnamespace std;
int main()
{
int k, a[10][11];
char var = 'a';
cin >> k;
for(int j = 0; j < k; j++)
for(int i = 0; i < k; i++)
cin >> a[j][i];
return 0;
}
here is my input:
3
1 -3 3 -4
2 3 -1 15
4 -3 -1 19
the first input which is 3 is the number of variables, The next lines are the equations specified as an augmented matrix. Each line represents an equation.
what i mean is every line is a new form of equations..means after the first equation has been outputted, another equation will output and the variables will start again to 'a'.