This is HomeWork, so only advices.
The pattern is:
Pascal's triangle - Wikipedia, the free encyclopedia[
^]
-try to solve the problem as 2 problems:
- solve the computing of each rows values.
- Solve the presentation
you need to remember the previous row to compute the next one.
Nota: abs() is not needed.