0

What is post test loop? Can you give example

Post test loop

13th Dec 2016, 1:01 PM
Irah Singson
Irah Singson - avatar
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"
13th Dec 2016, 1:35 PM
Саша Савчук
Саша Савчук - avatar
+ 1
It's loop where condition is after body if loop. For example: do { Console.WiteLine(i); i++; } while i<5;
13th Dec 2016, 1:31 PM
Саша Савчук
Саша Савчук - avatar
0
Thank!
13th Dec 2016, 1:31 PM
Irah Singson
Irah Singson - avatar