Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

How is sequence, selection and iteration used when writing programs.?

I have got a assignment due in tomorrow but i cannot find any Information on the subject.

1 Answer

Relevance
  • ?
    Lv 6
    10 years ago
    Favorite Answer

    Sequence is one line of code following the next. Code is assumed to execute in sequence unless another control mechanism is used.

    Selection is what goes on in an if statement. Lines of code are executed or skipped depending on a conditional statement.

    Iteration involves repeating a section of code multiple times, such as a for statement or a do..loop sequence.

Still have questions? Get your answers by asking now.