Homework assignment #8

Due date: MAY 26.

Write a program that uses the program min_max that's on the WEB for APR 10 to take a three-digit number (e.g., 629) and first forms an integer, num1 in which the digits are arranged in descending order ( 962) and then forms an integer, num2 in which the digits are arranged in ascending order (269). The program, in a loop, continuouly calculates num1 - num2 and assigns the difference to another integer until the difference is 495. The difference is printed in the loop.

Sam Marateck
SUN NOV 28 19:59:18 EST 1999