Welcome to WebmasterServe!

FREE TO JOIN! Join us now to engage in informative and friendly discussions about Webmastering, SEO, SEM, Internet Marketing, Programming, Graphic Design, Online Jobs and more. What are you waiting for? Ready to join our friendly community? It takes just one minute to register.

Dismiss Notice

Join WebmasterServe Forums 
Join the discussion! Have a better idea or an opinion? It takes just one minute to register Click Here to Join

My 2 Cents How To Use The Do….while Loop In C++

Discussion in 'General Programming Discussions' started by Swati Mishra, Mar 14, 2016.

  1. Swati Mishra

    Yellow Belt

    Joined:
    Dec 28, 2015
    Messages:
    644
    Ratings:
    +105 / -0
    Do…while loop is similar to the while loop, it differs from the while loop, in that the body of loop is executed at least one time, and the condition is evaluated for the subsequent executions.

    Syntax

    Do
    {
    Statements;
    }while (Boolean_expression);
     
  2. Manish Mishra

    Yellow Belt

    Joined:
    Dec 22, 2015
    Messages:
    1,025
    Ratings:
    +159 / -0
    Each loop has developed for a certain purpose.
    The looping function and execution results the same and so its writing structure that does not make it any different.
    the Do-While loop basically developed with the reason you are known of what to be done but no clue of how and what it takes to be done. It can be an end user of the program that provides these data or it arrives later in the programme.
     

Share This Page