Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
271 B
2
Indexable
Never
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])))
Leave a Comment