Do-While is one of the control flow statements that consists in the repetition of a block of instruction while the given Boolean condition is false. The difference between it and the while statement is that while has a pre-condition and do-while has a pos-condition. That means that the do-while statement executes its block of instructions at least once.
This is the syntax of the do-while loop in the PNP language:
repita
<block of instructions>
ate que <condition>;
The Java implementation that it's been refactored already have an implementation of the do-while statement. We have to refactor it to Kotlin too.
Do-While is one of the control flow statements that consists in the repetition of a block of instruction while the given Boolean condition is false. The difference between it and the while statement is that while has a pre-condition and do-while has a pos-condition. That means that the do-while statement executes its block of instructions at least once.
This is the syntax of the do-while loop in the PNP language:
The Java implementation that it's been refactored already have an implementation of the do-while statement. We have to refactor it to Kotlin too.