Advertisement
Guest User

Untitled

a guest
Dec 13th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <math.h>
  4. #define N 3
  5. #define M 3
  6.  
  7. double wprowadz();
  8. double pokaz();
  9. int main()
  10. {
  11. int tab[N][M];
  12. wprowadz(tab);
  13. pokaz(tab);
  14. }
  15.  
  16. double wprowadz()
  17. {
  18. int tab[N][M];
  19. for(int i=0; i<3; ++i)
  20. {
  21. for(int j=0; j<3; ++j)
  22. {
  23. printf("A[%d][%d]=", i+1, j+1);
  24. scanf("%lf", &tab[i][j]);
  25. }
  26. }
  27. }
  28.  
  29. double pokaz()
  30. {
  31. int tab[N][M];
  32. for(int i=0; i<3; ++i)
  33. {
  34. printf("\n");
  35. for(int j=0; j<3; ++j)
  36. {
  37. printf("%d\t", tab[i][j]);
  38. }
  39. }
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement