Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

...