Untitled
unknown
plain_text
2 years ago
271 B
5
Indexable
import random n = int(input("Podaj wymiar macierzy: ")) x = [] for i in range(n): for j in range(i+1, n): s = int(random in range(1,12)) x[i][j] = s x[j][i] = s print("Wczytana macierz:") for i in range(n): print(" ".join(map(str, x[i])))
Editor is loading...
Leave a Comment