Øving:
View file | ||||
---|---|---|---|---|
|
Oppgave 1 - Flervalgsoppgaver:
...
Code Block |
---|
function pascal(n) for x = 0:n-1 for y = 0:x if nChoosek(x,y) ~= 0 fprintf("%2.0f ", nChoosek(x,y)) end end fprintf('\n') end end |
...
View file | ||||
---|---|---|---|---|
|
Oppgave 1 - Flervalgsoppgaver:
...
Code Block |
---|
function pascal(n) for x = 0:n-1 for y = 0:x if nChoosek(x,y) ~= 0 fprintf("%2.0f ", nChoosek(x,y)) end end fprintf('\n') end end |
...