comp.lang.ada
 help / color / mirror / Atom feed
From: spick60809@aol.com (SPick60809)
Subject: Simple algorithmic question I hope :-)
Date: 1999/10/24
Date: 1999-10-24T00:00:00+00:00	[thread overview]
Message-ID: <19991023203630.01992.00000385@ng-fa1.aol.com> (raw)

Hi

      I'm a student studying ADA for the first time and need help to produce an
algorithm to complete a basic program exercise I am stuck with.
      The program asks the user to input a large number (integer) and then
input two further numbers as factors of the first; the program then checks the
two numbers to see if they are indeed factors and outputs 'true' or 'false'
accordingly. 
      I cannot figure an algorithm to do this and am left with an idea that:-
large number/factor number=integer would work, checking that the factor divides
without remainder i.e. .0.8 etc. This does not work, telling me not to assign
value to 'integer'
     I hope there is a simple solution I have'nt seen and would be greatfull if
someone could point me that way :-) I would be very interested to know, also,
if there is an online source listing various algorithms of a similar
nature/maths level.

Regards and thanx

Sean




             reply	other threads:[~1999-10-24  0:00 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-10-24  0:00 SPick60809 [this message]
1999-10-24  0:00 ` Simple algorithmic question I hope :-) Robert Dewar
1999-10-25  0:00   ` SPick60809
1999-10-25  0:00     ` Ted Dennison
1999-10-25  0:00       ` Robert A Duff
1999-10-26  0:00         ` Robert Dewar
1999-10-28  0:00           ` Robert A Duff
1999-10-26  0:00         ` Aidan Skinner
1999-10-28  0:00           ` Ted Dennison
1999-10-28  0:00             ` Gautier
1999-10-28  0:00             ` Nick Roberts
1999-10-29  0:00               ` Ted Dennison
1999-10-29  0:00                 ` William B. Clodius
1999-10-30  0:00                   ` Simon Wright
1999-11-03  0:00                     ` William B. Clodius
1999-11-02  0:00                   ` Wes Groleau
1999-11-02  0:00                     ` Robert Dewar
1999-11-03  0:00                       ` Wes Groleau
1999-10-29  0:00                 ` David Starner
1999-10-31  0:00               ` Robert Dewar
1999-10-31  0:00             ` Robert Dewar
1999-10-31  0:00               ` Richard D Riehle
1999-10-31  0:00               ` David Starner
1999-11-01  0:00                 ` Robert Dewar
1999-11-03  0:00                   ` William B. Clodius
1999-10-26  0:00         ` Vladimir Olensky
1999-10-26  0:00           ` Robert Dewar
1999-10-26  0:00           ` Ted Dennison
1999-10-26  0:00             ` Robert Dewar
1999-10-26  0:00             ` Robert Dewar
1999-10-24  0:00 ` Robert Dewar
replies disabled

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