Skip to main content
Code sample in Swift, C# and Java
Main menu
About
History
Swift
C#
Java
Python
You are here
Home
»
Forums
»
Swift
»
Swift: Control flow
»
Swift: Loops
"while" loop in Swift
Submitted by
obraztsov
on Tue, 11/10/2015 - 12:13
Forums:
Swift: Loops
var
i =
5
var
f5 =
1
while
i >
1
{
f5 *= i
i--
}
//f5 is 120
Log in
to post comments