--- Jasper McCrea <[EMAIL PROTECTED]> wrote: > Michael W Thelen wrote: > > > > On Wed, Jul 10, 2002 at 12:47:40PM +0100, Jasper McCrea wrote: > > > given a line number on the command line, print out that line > from > > > Pascal's triangle. Single space separated numbers, nothing but > a \n at > > > the end, you know the drill. > > > > Do the line numbers begin at 0 or 1? Is it like this? > > > > line 0: 1 > > line 1: 1 1 > > line 2: 1 2 1 > > > > I think line numbering will begin at 1. 0 would be too odd. And it > would > add a few characters to my solution :)
(1+1)^0 = 1 (1+1)^1 = 1+1 (1+1)^2 = 1+2+1 (1+1)^3 = 1+3+3+1 (1+1)^4 = 1+4+6+4+1 Not odd at all. Phil > cheerio, > Jasper ===== -- "One cannot delete the Web browser from KDE without losing the ability to manage files on the user's own hard disk." - Prof. Stuart E Madnick, MIT. So called "expert" witness for Microsoft. 2002/05/02 __________________________________________________ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com
