1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Please HELP ME!!!!!!!!!

Discussion in 'Meet and Greet' started by lkm1103, Mar 9, 2011.

  1. lkm1103

    lkm1103 New Member

    Joined:
    Mar 7, 2011
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    student
    Location:
    in south africa
    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!!!!!!
     
  2. lionaneesh

    lionaneesh Active Member

    Joined:
    Mar 21, 2010
    Messages:
    848
    Likes Received:
    224
    Trophy Points:
    43
    Occupation:
    Student
    Location:
    India
    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!
     

Share This Page