Mail Archives: djgpp/1996/04/14/20:02:36
I've seen this sort of program. Usually it's just set to wait until a
certain special number like 999 is entered that it treats as an exit command.
Also done more elegantly as like this:
Enter a number: 5
5 is positive
Do you wish to do another number? Y
Enter a number: -4
-4 is negative
Do you wish to do another number? Y
Enter a number: 32
32 is positive
Do you wish to do another number? N
C:\DJGPP>
--
.*. "Clouds are not spheres, mountains are not cones, coastlines are not
-() < circles, and bark is not smooth, nor does lightning travel in a
`*' straight line." ,------------------------------------------------
-- B. Mandelbrot | Paul Derbyshire (PGD) ao950 AT freenet DOT carleton DOT ca
- Raw text -