p183ex6 - Pascal's TriangleGiven an integer N, output the first N rows of Pascal's triangle.
InputA single integer N (1 ≤ N ≤ 20).
OutputThe first N rows of Pascal's triangle, in order from top to bottom. Each row should be printed in a separate line, and the entries in each row should be printed from left to right with exactly one space between each pair of horizontally adjacent entries.
1 1 1 1 2 1
Point Value: 3
Time Limit: 2.00s
Memory Limit: 16M
Added: Oct 25, 2008
C++03, PAS, C, HASK, ASM, RUBY, PYTH2, JAVA, PHP, SCM, CAML, PERL, C#, C++11, PYTH3