From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,44035ca3ad75f32b,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!z14g2000cwz.googlegroups.com!not-for-mail From: isaac_2004@yahoo.com Newsgroups: comp.lang.ada Subject: integers into strings Date: 1 Feb 2006 17:38:32 -0800 Organization: http://groups.google.com Message-ID: <1138844312.140458.73880@z14g2000cwz.googlegroups.com> NNTP-Posting-Host: 67.170.5.168 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1138844317 32430 127.0.0.1 (2 Feb 2006 01:38:37 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 2 Feb 2006 01:38:37 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: z14g2000cwz.googlegroups.com; posting-host=67.170.5.168; posting-account=bWy1LAwAAAAtVkasDCH0ykMCBMNd-FcL Xref: g2news1.google.com comp.lang.ada:2741 Date: 2006-02-01T17:38:32-08:00 List-Id: 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