Do..While Structure

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • OSC
    New Member
    • Nov 2007
    • 1

    #1

    Do..While Structure

    Hi,

    I was just wondering does anyone know the code for Displaying the even numbers between 2 and 220, using a do … while structure. as i am having difficulty figuring it out.

    Thanks A Million.
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by OSC
    Hi,

    I was just wondering does anyone know the code for Displaying the even numbers between 2 and 220, using a do … while structure. as i am having difficulty figuring it out.

    Thanks A Million.
    What have you got so far? I'm sure the terminating condition must be something
    like: 'number < 220' because if you've just done something with a number == 220
    you should terminate your loop.

    kind regards,

    Jos

    Comment

    • dav3
      New Member
      • Nov 2006
      • 94

      #3
      2 * n (where n is an integer). :)

      Comment

      Working...