Pascal's Triangle in App Lab

Hi,

We tried to write a program to print out a given row of Pascal’s triangle. I am attaching a copy below of the current code. I can’t understand why it is not printing the correct values, I have tried debugging with no success. Please help!

Update: we fixed the error!

Glad it worked out! I’d love to see the final version!

If you click on the link above, it should work out.