...
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
|
...
...
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
|
...