How to resolve the algorithm Loops/Do-while step by step in the Plain English programming language

Published on 12 May 2024 09:40 PM

How to resolve the algorithm Loops/Do-while step by step in the Plain English programming language

Table of Contents

Problem Statement

Start with a value at 0. Loop while value mod 6 is not equal to 0. Each time through the loop, add 1 to the value then print it. The loop must execute at least once.

Let's start with the solution:

Step by Step solution about How to resolve the algorithm Loops/Do-while step by step in the Plain English programming language

Source code in the plain programming language

To run:
Start up.
Demonstrate do-while.
Wait for the escape key.
Shut down.

To demonstrate do-while:
Bump a counter.
Convert the counter to a string.
Write the string on the console.
If the counter is evenly divisible by 6, exit.
Repeat.

  

You may also check:How to resolve the algorithm Loops/Foreach step by step in the Plain English programming language
You may also check:How to resolve the algorithm Return multiple values step by step in the Plain English programming language
You may also check:How to resolve the algorithm Check that file exists step by step in the Plain English programming language
You may also check:How to resolve the algorithm Draw a pixel step by step in the Plain English programming language
You may also check:How to resolve the algorithm Palindrome detection step by step in the Plain English programming language