hI, I need to write a program in C PROGRAMING that accepts a single integer as a command-line argument, the input must be validate and then the process described below must be perform until it converges. The process is as follows: Take any 3-digit number and arrange its digits in descending order and in ascending order and subtract the larger number from the smaller number. Repeat with the result until the resulting number stops changing (converges). And I would like to know how many iterations it took to converge and what the converged value is Please,assist me ,i really want to get this!!!!!!
We can only assist you if you do something yourself too!! Posting the problem here and getting a pre-cooked solution will not make you a programmer!