Arrays
Making a pascal triangle using array and without using array in turbo c.... Can't able to figure it out,please me... ---Posted from iPhone App---
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Sep 25, 2011, 10:14 AM
Without using arrays (i.e. using the binomial coefficients instead), the code would be:
In this second case, you can only really display the numbers as a right-angled rather than an equilateral triangle as you don't know how long each line will be until you've generated the numbers.