Advertisement
programusy

dsf]gs

Dec 7th, 2023 (edited)
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. def przekatna(dir = 0):
  2. maxval = 0
  3. if dir == 0:
  4. for i in range(10):
  5. if tab[i][i] > maxval:
  6. maxval = tab[i][i]
  7. print("kierunek przekatnej: lewy gorny -> prawy dolny")
  8. print("wartosc maksylamna:", maxval)
  9.  
  10. elif dir == 1:
  11. for i in range(10):
  12. if tab[9-i][i] > maxval:
  13. maxval = tab[9-i][i]
  14. print("kierunek przekatnej: lewy donly -> prawy gorny")
  15. print("wartosc maksylamna:", maxval)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement