What's do-while sentence ? | SoloLearn: Learn to code for FREE!

0

What's do-while sentence ?

Please answer my question

c++

12/6/2018 5:09:34 PM

dler

2 Answers

New Answer

+8

Do { Your code } While(condition) Here Your code is if first executed and then while condition is check. If condition is true the code is executed again else we get out of loop. Here the best part is your code part is executed at least once even if your condition is false in the beginning only

+7

Hello, 😊 Please, continue with the C++ tutorial you started and learn the basics! 👍 Here are some tips to make sure your question qualifies:  - Post only programming-related QUESTIONS and ANSWERS;  - SEARCH for similar QUESTIONS or ANSWERS before posting;  - Include relevant TAGS;  - Follow community RULES: https://www.sololearn.com/Content-Creation-Guidelines/ DO NOT  - Post spam/advertisement;  - Use inappropriate language. * Post general discussions and open-ended questions in your feed.