> r1 = 1, r2 = 1, r3 = 1
> 1
> p(2,1)
p(2,1) == 2!/(1! * 1!) == 2/(1*1). So your value of r1 is wrong. It has nothing to do with the division. Similarly,
> r1 = 1, r2 = 2, r3 = 1
> 0
> p(2,2)
Here you should have r1 = 2, r2 = 2, and r3 = 1.
> r1 = 1, r2 = 1, r3 = 1
> 1
> p(2,1)
p(2,1) == 2!/(1! * 1!) == 2/(1*1). So your value of r1 is wrong. It has nothing to do with the division. Similarly,
> r1 = 1, r2 = 2, r3 = 1
> 0
> p(2,2)
Here you should have r1 = 2, r2 = 2, and r3 = 1.
Last edited by robatino; 04-19-2007 at 12:59 PM.
Thanks
I'm going to check very carefully my source code and correct my mistakes and if i see that sthg is not
functioning well I'm going to post again
Thank you and have a nice evening
Hi again
Well right now i corrected the values i take now the right output but the spaces inside the triangle
are wrong!
What shall i do?
1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
1 5 10 10 5 1
1 6 15 20 15 6 1
1 7 21 35 35 21 7 1
Thanks in advance