comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <jrcarter@acm.org>
Subject: Re: Numbers problem
Date: Wed, 14 Mar 2001 02:28:53 GMT
Date: 2001-03-14T02:28:53+00:00	[thread overview]
Message-ID: <3AAED762.368790C5@acm.org> (raw)
In-Reply-To: 98lu1q$93n$1@nh.pace.co.uk

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" <wwminirl@hotmail.com> 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



      reply	other threads:[~2001-03-14  2:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <98ls9n$mp76@tech.port.ac.uk>
2001-03-13 19:56 ` Numbers problem Marin David Condic
2001-03-14  2:28   ` Jeffrey Carter [this message]
replies disabled

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