comp.lang.ada
 help / color / mirror / Atom feed
* Simple algorithmic question I hope :-)
@ 1999-10-24  0:00 SPick60809
  1999-10-24  0:00 ` Robert Dewar
  1999-10-24  0:00 ` Robert Dewar
  0 siblings, 2 replies; 31+ messages in thread
From: SPick60809 @ 1999-10-24  0:00 UTC (permalink / 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




^ permalink raw reply	[flat|nested] 31+ messages in thread

end of thread, other threads:[~1999-11-03  0:00 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-10-24  0:00 Simple algorithmic question I hope :-) SPick60809
1999-10-24  0:00 ` Robert Dewar
1999-10-24  0:00 ` 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         ` 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-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             ` 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-28  0:00             ` Gautier
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

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