locked
LOOP IN VB PROGRAM RRS feed

  • Question

  • WHY WILL THE SECOND LOOP NOT EXECUTE?

    1. X=1                                              2.  WHILE 5<5

         DO                                                       X=X+1

           X=X+1                                           END WHILE

    WHILE X<10

    1. THE 1ST LOOP IS AN ENDLESS LOOP.

    2. THE VALUE OF X IS NOT REINITIALIZED AFTER THE FIRST LOOP EXECUTES

    3. THE LOOPS ARE NESTED LOOPS

    4. THE SECOND LOOP IS A SENTINEL - CONTROLLED

    Monday, April 4, 2011 10:37 PM

Answers

  • Sorry, there is no forum for academic dishonesty. You are expected to finish your homework alone, or you are wasting your tuition and misuse instructor's trust.

    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
    Visual C++ MVP
    Tuesday, April 5, 2011 12:11 AM