Java simple two dimensional array exercises Using two-dimensional array to achieve the following graphics output * *** *** * Want to use two-dimensional array, nested loop also need two-dimensional array assignment, nested loop will not use it, please write it down

Java simple two dimensional array exercises Using two-dimensional array to achieve the following graphics output * *** *** * Want to use two-dimensional array, nested loop also need two-dimensional array assignment, nested loop will not use it, please write it down


Directly use nested loop to do it, easy and simple~
public class Loop{
\x05public static void main(String[] args){
for(int i=1;i



Let the matrix A = (1 - 1, 12) and R (a) = 2, and find the values of a and B
3 a -1 2
5 3 b 6


If R (a) = 2, then all the subdeterminants of order 3 of a are zero. Take the subdeterminants of order 3 of columns 1,2,4 to make them zero,
That is - 4A + 20 = 0, a = 5,
Take the subdeterminant of order 3 of column 1,3,4 and make it zero,
That is, 4b-4 = 0, B = 1



Who knows the problem of matrix,
Use the inverse matrix to solve the following linear equations, use the inverse matrix!


Column matrix (a, b), row transformation, into the form of (E, t), then t = a inverse B
1 -1 -1 2
2 -1 -3 1
3 2 -5 0
The first and second lines are multiplied by - 2, - 3 and added to the second and third lines respectively
1 -1 -1 2
0 1 -1 -3
0 1 -2 -6
Multiply line 2 by - 1, add to line 3, and multiply line 3 by - 1
1 -1 -1 2
0 1 -1 -3
0 0 1 3
Add line 2 to line 3. Add line 1 to line 3
1 -1 0 5
0 1 0 0
0 0 1 3
Line 2 plus line 1
1 0 0 5
0 1 0 0
0 0 1 3
So the solution is (x1, X2, x3) = (5,0,3)