0
What is post test loop? Can you give example
Post test loop
3 Answers
+ 2
So, if the condition of the do-while loop evaluates to false, the statements in the do will still run once:
i=5;
do { Console.WriteLine(i); } while i<3;
this code will outout "5"
+ 1
It's loop where condition is after body if loop.
For example:
do {
Console.WiteLine(i);
i++;
} while i<5;
0
Thank!