Re: PASCAL'S TRIANGLE
- From: Richard Heathfield <invalid@xxxxxxxxxxxxxxx>
- Date: Thu, 05 Oct 2006 05:57:50 +0000
jmcgill said:
GUPTAJI wrote:
hi all,
can u give me the code to create a Pascal's Triangle........... and
yes, it should work
If you can make this print one more row correctly, I will be impressed.
1 12 66 220 495 792 924 792 495 220 66 12 1
Prepare to be impressed.
After the loop's } but before the return 0, add this line:
printf("1 13 78 286 715 1287 1716 1716 1287 715 286 78 13 1\n");
--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
.
- Follow-Ups:
- Re: PASCAL'S TRIANGLE
- From: jmcgill
- Re: PASCAL'S TRIANGLE
- References:
- PASCAL'S TRIANGLE
- From: GUPTAJI
- Re: PASCAL'S TRIANGLE
- From: jmcgill
- PASCAL'S TRIANGLE
- Prev by Date: Re: Help a practitioner with atomic access
- Next by Date: Re: Problem with string manipulation
- Previous by thread: Re: PASCAL'S TRIANGLE
- Next by thread: Re: PASCAL'S TRIANGLE
- Index(es):