hello frends ... i need sme help in developing some programs in C

1) i want the out like this 1
1 1
1 1 2
1 1 2 3
1 1 2 3 5
1 1 2 3 5 8 ... & soon .. till the range i specify

... here you can see tht we are adding the Diagonal digits ... plz help

2 ) program .. i want out like this .. in this program .....

1
1 2 1
1 2 3 2 1
1 2 3 4 3 2 1