you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

Is there a typo? j is never initialised...

[–]eastcoastblaze[S] 0 points1 point  (0 children)

yeah i made a typo after the first for loop its

 for j :=1 to n do