comp.lang.ada
 help / color / mirror / Atom feed
From: "isaac2004" <isaac_2004@yahoo.com>
Subject: Re: invalid parameter list
Date: 18 Feb 2006 16:06:17 -0800
Date: 2006-02-18T16:06:17-08:00	[thread overview]
Message-ID: <1140307577.816883.185870@g43g2000cwa.googlegroups.com> (raw)
In-Reply-To: <dt8aup$36b$1@nwrdmz01.dmz.ncs.ea.ibs-infra.bt.com>

> there are no divisors of 1 or 0,


>Then shouldn't the sum of their proper divisors be 0? Your function will
return 1.


>> the divisors of 9 is 7 ( 1+ 3+3)


>The divisors of 9 are -9, -3, -1, 1, 3 and 9. The _proper_ divisors are
1 and 3. 1+3=4.

so what should i do to my code to fix this, take out the C := C + 1 ;
part
i still dont understand how to test the sociable chain part and then
finally write to a file, do i just go something like

chains : File_Type;


code

Create(File => chains, Mode => Out_File, Name => "chains.txt")
Put (File => chains, Item => Sociable_Chain ( Start, Max), Width => 0
); 

is this right? can i plz get some code examples . thank you




  reply	other threads:[~2006-02-19  0:06 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-17 23:13 invalid parameter list isaac2004
2006-02-18  6:02 ` jimmaureenrogers
     [not found] ` <tfadv19pqf17h3prdhquk3e5f30j6vhdhl@4ax.com>
2006-02-18  8:04   ` isaac2004
2006-02-18 14:34     ` Björn Persson
2006-02-18 21:19       ` isaac2004
2006-02-18 23:31         ` Björn Persson
2006-02-18 23:34           ` Martin Dowie
2006-02-19  0:06             ` isaac2004 [this message]
     [not found]               ` <dmlfv11b4qagaf3gec853k9on191576gqc@4ax.com>
2006-02-19  4:06                 ` isaac2004
     [not found]                   ` <uavfv1pjdorpim6lpu8sjfdlq4lmmn1jes@4ax.com>
2006-02-19 16:21                     ` Björn Persson
2006-02-19 15:54               ` Björn Persson
2006-02-19  0:15             ` Ada.Text_IO.Create (was: invalid parameter list) Björn Persson
2006-02-19  8:14               ` Ada.Text_IO.Create Martin Dowie
2006-02-19 19:45                 ` Ada.Text_IO.Create Jeffrey R. Carter
2006-02-19 21:49                   ` Ada.Text_IO.Create Larry Kilgallen
2006-02-20  6:09                     ` Ada.Text_IO.Create isaac2004
2006-02-20  6:43                       ` Ada.Text_IO.Create Gautier
     [not found]                       ` <3stiv1l39144oscbs5he2v6h5uvfmli03q@4ax.com>
2006-02-21 22:15                         ` Ada.Text_IO.Create isaac2004
2006-02-22  7:45                           ` Range error (was: Ada.Text_IO.Create) Björn Persson
2006-02-22  8:27                             ` Range error Björn Persson
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox