Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def przekatna(dir = 0):
- maxval = 0
- if dir == 0:
- for i in range(10):
- if tab[i][i] > maxval:
- maxval = tab[i][i]
- print("kierunek przekatnej: lewy gorny -> prawy dolny")
- print("wartosc maksylamna:", maxval)
- elif dir == 1:
- for i in range(10):
- if tab[9-i][i] > maxval:
- maxval = tab[9-i][i]
- print("kierunek przekatnej: lewy donly -> prawy gorny")
- print("wartosc maksylamna:", maxval)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement