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=-0.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e3d529fafe39b7e0,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-03-13 12:08:04 PST Path: supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!isdnet!psinet-france!psiuk-f4!psiuk-p4!uknet!psiuk-n!news.pace.co.uk!nh.pace.co.uk!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: Numbers problem Date: Tue, 13 Mar 2001 14:56:14 -0500 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: <98lu1q$93n$1@nh.pace.co.uk> References: <98ls9n$mp76@tech.port.ac.uk> NNTP-Posting-Host: 136.170.200.133 X-Trace: nh.pace.co.uk 984513402 9335 136.170.200.133 (13 Mar 2001 19:56:42 GMT) X-Complaints-To: newsmaster@pace.co.uk NNTP-Posting-Date: 13 Mar 2001 19:56:42 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: supernews.google.com comp.lang.ada:5696 Date: 2001-03-13T19:56:42+00:00 List-Id: 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. MDC -- Marin David Condic Senior Software Engineer Pace Micro Technology Americas www.pacemicro.com Enabling the digital revolution e-Mail: marin.condic@pacemicro.com Web: http://www.mcondic.com/ "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 > > Thanks! > >