The Sixth, Seventh and Eighth tasks are done
This commit is contained in:
parent
a6c451d866
commit
5a81ed3cd8
41 changed files with 1562 additions and 5 deletions
15
2025.03.07/6Ex/solve.c
Normal file
15
2025.03.07/6Ex/solve.c
Normal file
|
@ -0,0 +1,15 @@
|
|||
#include "solve.h"
|
||||
#include "math.h"
|
||||
|
||||
void t6_solve(double *a, int n, int m, int i, int j)
|
||||
{
|
||||
double temp;
|
||||
int k;
|
||||
(void)n;
|
||||
for (k = 0; k < m; k++)
|
||||
{
|
||||
temp = a[i * m + k];
|
||||
a[i * m + k] = a[j * m + k];
|
||||
a[j * m + k] = temp;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue