Skip to main content
Code sample in Swift, C# and Java
Main menu
About
History
Swift
C#
Java
Python
You are here
Home
»
Forums
»
C#
»
C#: Control flow
»
C#: Loops
"do-while" loop in C#
Submitted by
obraztsov
on Wed, 11/18/2015 - 10:41
Forums:
C#: Loops
var
i = 7;
var
f7 = 1;
do
{
f7 *= i;
i--;
}
while
(i > 1);
//f7 is 5040
Log in
to post comments