Advertisement
Guest User

Untitled

a guest
Jan 28th, 2020
109
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. #define SIZE 4
  3.  
  4. int main(int argc, char const *argv[]) {
  5. int tablica[SIZE][SIZE] = {{1,2,3,4},{10,20,30,40},{100,200,300,400},{1000,2000,3000,4000}};
  6. /* int najwieksza = 0;
  7. int najmniejsza = 0;
  8.  
  9. for (int i=0; i<SIZE; i++)
  10. {
  11. printf("Podaj wartosci dla rzedu %d\n", i);
  12. for (int j=0; j<SIZE; j++)
  13. {
  14. printf("Podaj wartosc komorki %d: ", j); scanf("%d", &tablica[i][j]);
  15. if (%d tablica[i][j] > najwieksza) {
  16. printf("test");
  17. }
  18. }
  19. }
  20. */
  21.  
  22. printf("\nWartosci tablicy to: \n");
  23. for (int i=0; i<SIZE; i++)
  24. {
  25. for (int j=0; j<SIZE; i++)
  26. {
  27. printf("%.5d ", tablica[i][j]);
  28. }
  29. printf("\n");
  30. }
  31. return 0;
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement