Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <math.h>
- #define N 3
- #define M 3
- double wprowadz();
- double pokaz();
- int main()
- {
- int tab[N][M];
- wprowadz(tab);
- pokaz(tab);
- }
- double wprowadz()
- {
- int tab[N][M];
- for(int i=0; i<3; ++i)
- {
- for(int j=0; j<3; ++j)
- {
- printf("A[%d][%d]=", i+1, j+1);
- scanf("%lf", &tab[i][j]);
- }
- }
- }
- double pokaz()
- {
- int tab[N][M];
- for(int i=0; i<3; ++i)
- {
- printf("\n");
- for(int j=0; j<3; ++j)
- {
- printf("%d\t", tab[i][j]);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement