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


What's do-while sentence ?

Please answer my question


12/6/2018 5:09:34 PM


2 Answers

New Answer


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


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.