A22.0002

Homework assignment #8

Due date: APR 25

Write a program that uses the program min_max that's on the WEB at: http://cs.nyu.edu/courses/fall00/V22.0002-003/nov16/MINMAX2.PAS 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