Pascal's triangle/Puzzle: Difference between revisions

Content added Content deleted
(Added a C program -- Zach from proggit)
Line 789: Line 789:


this helped me...
this helped me...
<lang PARI/GP>
<lang parigp>
Pascals_triangle_puzzle(topvalue=151,leftsidevalue=40,bottomvalue1=11,bottomvalue2=4) = {
Pascals_triangle_puzzle(topvalue=151,leftsidevalue=40,bottomvalue1=11,bottomvalue2=4) = {
y=(topvalue-(4*(bottomvalue1+bottomvalue2)))/7;
y=(topvalue-(4*(bottomvalue1+bottomvalue2)))/7;
Line 798: Line 798:


I'm thinking of one to solve all puzzles regardless of size and positions. but the objective was to solve this puzzle.
I'm thinking of one to solve all puzzles regardless of size and positions. but the objective was to solve this puzzle.

=={{header|PicoLisp}}==
=={{header|PicoLisp}}==
<lang PicoLisp>(be number (@N @Max)
<lang PicoLisp>(be number (@N @Max)