comp.lang.ada
 help / color / mirror / Atom feed
* integers into strings
@ 2006-02-02  1:38 isaac_2004
  2006-02-02  2:15 ` Jeffrey R. Carter
  0 siblings, 1 reply; 5+ messages in thread
From: isaac_2004 @ 2006-02-02  1:38 UTC (permalink / raw)


hi im new to ada and i want to take a number inputted from a user and
seperate the digits then arrange it in ascending and descending order
and subtract and ascending number from the descending number

for example

user inputs 7319

program outputs   9731 - 1379 = 8352

8532 - 2358 = 6174
 and so on


also loop it until number acquired after subtraction is the same as
starting number

like this
6174
7641 - 1467 = 6174  

what procedure would i use to do this




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

end of thread, other threads:[~2006-02-02 19:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-02  1:38 integers into strings isaac_2004
2006-02-02  2:15 ` Jeffrey R. Carter
2006-02-02  3:43   ` isaac2004
2006-02-02  5:48     ` Simon Wright
2006-02-02 19:32     ` Jeffrey R. Carter

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