From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e3d529fafe39b7e0 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-03-13 18:29:05 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!128.230.129.106!news.maxwell.syr.edu!newsfeed1.earthlink.net!newsfeed.earthlink.net!newsmaster1.prod.itd.earthlink.net!newsread1.prod.itd.earthlink.net.POSTED!not-for-mail Message-ID: <3AAED762.368790C5@acm.org> From: Jeffrey Carter X-Mailer: Mozilla 4.7 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Numbers problem References: <98ls9n$mp76@tech.port.ac.uk> <98lu1q$93n$1@nh.pace.co.uk> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Wed, 14 Mar 2001 02:28:53 GMT NNTP-Posting-Host: 63.178.187.192 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.prod.itd.earthlink.net 984536933 63.178.187.192 (Tue, 13 Mar 2001 18:28:53 PST) NNTP-Posting-Date: Tue, 13 Mar 2001 18:28:53 PST Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: supernews.google.com comp.lang.ada:5708 Date: 2001-03-14T02:28:53+00:00 List-Id: Marin David Condic wrote: > > Now *that* sounds more like a homework problem! :-) > > Hint: Figure out which one is smallest then work upwards from there. > > If you have trouble with that, try your textbook (or the Ada Reference > Manual) in the areas that deal with "if" statements and "for" loops. You > might want to look at the section that deals with "subprograms" since it > doesn't sound like you've got a grasp on the difference between a function > and a procedure. > > "WM" wrote in message > news:98ls9n$mp76@tech.port.ac.uk... > > How can I write a function, such as: input two random integers, output all > > values one by one from smallest to highest. > > e.g. input: 6,2 > > output: 2,3,4,5,6 WM might also want to look at the 'Min and 'Max attributes. -- Jeff Carter "I blow my nose on you." Monty Python & the Holy Grail