Home > Back-end >  C language problem, why the third in a nested loop calculation performed only once?
C language problem, why the third in a nested loop calculation performed only once?

Time:06-07

#include
Int main ()
{
Int a [4], [4], I, j;
Float k;
Printf (" please input line by line the determinant elements: ");
for(i=0; i<4. I++)
for(j=0; J<4. J++)
The scanf (" % d ", & amp; A [I] [j]);

for(i=0; i<4. I++)
{the for (j=0; J<4. J++)
Printf (" % d ", a [I] [j]);
printf("\n"); }
Printf (" \ n \ n ");/* determinant form */

For (I=3; I> 0; I -)
{the for (j=0; J<4. J++)
A [I] [j]=[I] a [j] - a [0] [j]/[0] a [0] * [3] a [0]. }

for(i=0; i<4. I++)
{
for(j=0; J<4. J++)
Printf (" % d ", a [I] [j]);
printf("\n"); }/* determinant form */
}

CodePudding user response:

I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10581430.html
I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10768339.html
  • Related