Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<conio.h>
- #include<math.h>
- int main()
- {
- int i,j,n;
- float A[40][40],x[40],z[40],e[40],zmax,emax;
- printf("\n enter the order of matrix");
- scanf("%d",&n);
- printf("\n enter matrix element row-wise\n");
- for(i=1;i<=n;i++)
- {
- for(j=1;j<=n;j++)
- {
- printf("A[%d][%d]=",i,j);
- scanf("%f",&A[i][j]);
- }
- }
- printf("\n enter the column vector\n");
- for(i=1;i<=n;i++)
- {
- printf("x[%d]=",i);
- scanf("%f",&x[i]);
- }
- do
- {
- for(i=1;i<=n;i++)
- {
- z[i]=0;
- for()
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement