Skip to content

Commit

Permalink
Added comments and removed extra print Statements
Browse files Browse the repository at this point in the history
  • Loading branch information
adgai19 committed Oct 2, 2020
1 parent 7847aa4 commit 5f7709b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Algorithms/Pascal/pascals.lua
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
-- Problem : To print Pascal's Triangle


local n = io.read("*n")
local c
--print(n)
for l = 1,n do
c=1
--print(c)
for x = 1,l do
io.write(c," ")
c=(c*(l-x)/x)
Expand Down

0 comments on commit 5f7709b

Please sign in to comment.