i can't remember exact formula of the pascal triangle if you know then please send me the formula and the pascal triangle code in c


i think

y=c*(y-x)/(x+1);

this is wrong but you can modify and send me

C(n,r) can be calculated as follows:
[tex]C(n,r) = \frac{n!}{(n-r)!r!}[/tex]

Which means your horizontal component would be 'r', and your vertical component 'n'.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.