Advertisement
Guest User

aac

a guest
Feb 26th, 2020
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<conio.h>
  3. #include<math.h>
  4. int main()
  5. {
  6. int i,j,n;
  7. float A[40][40],x[40],z[40],e[40],zmax,emax;
  8. printf("\n enter the order of matrix");
  9. scanf("%d",&n);
  10. printf("\n enter matrix element row-wise\n");
  11. for(i=1;i<=n;i++)
  12. {
  13. for(j=1;j<=n;j++)
  14. {
  15. printf("A[%d][%d]=",i,j);
  16. scanf("%f",&A[i][j]);
  17.  
  18. }
  19. }
  20. printf("\n enter the column vector\n");
  21. for(i=1;i<=n;i++)
  22. {
  23. printf("x[%d]=",i);
  24. scanf("%f",&x[i]);
  25.  
  26. }
  27. do
  28. {
  29. for(i=1;i<=n;i++)
  30. {
  31. z[i]=0;
  32. for()
  33. }
  34. }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement