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
"while" loop in C#
Submitted by
obraztsov
on Wed, 11/18/2015 - 10:40
Forums:
C#: Loops
var
i = 5;
var
f5 = 1;
while
(i > 1) {
f5 *= i;
i--;
}
//f5 is 120
Log in
to post comments