238 views
explain do while loop with example
by

1 Answer

0 votes

Do while loop  is used to repeat a part of the used program several times, and the repetition is executed at least once even if the condition is not fulfilled. This is because the condition is checked after execution, and it is also used when we want a part of the program at least once. Repetition begins with the command do  then comes after it a set of phrases and prompts to be repeated, ending with the while command

When the translator finds the statement (do), he will re-execute the expressions confined between this command and the (while) command, and every time the translator reaches (while) he checks the condition that follows it. If the condition is fulfilled, the translator returns to the command (do), and starts By executing from (do) down to the (while) command again, and this process continues until the condition is not fulfilled

by (7.4k points)

Related questions

0 answers
125 views
asked Mar 3, 2021 by asklent032021 (50.5k points)
0 answers
108 views
0 answers
119 views
asked Dec 20, 2020 by anonymous
0 answers
263 views
asked Dec 30, 2020 by anonymous
1 answer
356 views
1 answer
132 views
asked May 21, 2022 by asklent052022 (5.4k points)
1 answer
133 views
asked May 21, 2022 by asklent052022 (5.4k points)
1 answer
152 views
1 answer
178 views
asked Dec 2, 2021 by asklent112021 (9.1k points)
1 answer
128 views

Free Online Question and Answer Website

Are you curious? Get answers to your questions online. Share and spread your know-how through the best question and answer English Website. Join the free question-answer site today. Ask thought-provoking questions and get the answers from the experts. Select and choose topics of your choice. Create or join your own community.

Ask your question with your name or go anonymous. Become street smarter and join hands with likeable people.
Ask us any question and get instant help. You can learn and know anything about this platform.

The best answers will get a vote-up. Don't wait and sign up now? Explore a wide range of different questions and answers. Active users and regular readers will get benefited and also help us grow.

For any little concern, we are here. Get a quick fix answer for all your questions. We are happy to share. Asklent is a platform for helping each other.