i want to display pascals triangle on computer screen.the pascals triangle
goes like this. and what is logic.
1 2 1
1 3 3 1
1 4 6 4 1
1 5 10 10 5 1 and so on.
Jump to Post
First logic feature to see is that it is always symmetric about the central value in one sequence, so you will probably just need to store or compute one half of each row (from start to middle) and repeat in reverse for the remainder of the row (taking into account …
All 5 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.