Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <math.h>
  4.  
  5. void leggi_matrice(int,double**);
  6.  
  7.  
  8. main()
  9.  
  10. {
  11. int n; int i,j;
  12.  
  13. printf("\n Inserisci il numero di equazioni del sistema: n = ");scanf("%d",&n);
  14.  
  15. double b[n]; double** A;
  16.  
  17. leggi_matrice(n,A);
  18.  
  19.  
  20. }
  21.  
  22. void leggi_matrice(int n, double** A)
  23. {
  24. int i,j;
  25. for(i=1;i<=n;i++)
  26. for(j=1;j<=n;j++)
  27. A[i][j]=rand()%n;
  28.  
  29. return;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement