• Home
  • Game
  • C++
  • Java
  • Android
  • No Need
  • do...while loop in C++

    The do while loop is very similar to while loop. In the while loop first check final condition then execute the statement. But in the do while loop first execute the statement then check the final condition.

    } while(Final condition)

    Initialization: Read the previous lecture.
    Final condition: Briefly explained in previous lecture.
    Increment/decrements: Learn more read the previous lecture.

    Initialization: in this part of the for loop can declared the starting point of for loop. That’s means initial point of statement execution .in the program the red block are indicate initialization.

    Final condition: the end point of program. The ending period  statement execution , that defined by the final condition. In the program the green block are indicate the final condition.

    Increment/decrements: The increment operators are use to increases the values of its operand and decrements operators are use to increases the values of its operand. in the program yellow box are indicate increment.

    Flow chart for do while control structure 
    Share this article :

    Post a Comment

    Support : Prosanta Chaki |
    Copyright © 2011. Funny Programmer - All Rights Reserved
    Proudly powered by Blogger