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

help with iteration

Discussion in 'C' started by hyperventilate, Mar 17, 2008.

  1. hyperventilate

    hyperventilate New Member

    Joined:
    Mar 17, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hi. I need some help with iteration.

    What we need to do is to ask for 4 parameters from the user. The program will compute for A, B, C, D, E, F, and A_new. After one iteration, the program will use A_new as A and the process repeats until the difference between two A_new's is less than 0.001. How can I make this into a nested loop? We tried doing two do-while loops but the program just won't compile. Thanks in advance.
     
  2. asadullah.ansari

    asadullah.ansari TechCake

    Joined:
    Jan 9, 2008
    Messages:
    356
    Likes Received:
    14
    Trophy Points:
    0
    Occupation:
    Developer
    Location:
    NOIDA
    explain clearly. what is use of B, C,D, etc?? How u will get two A' snew?
     

Share This Page