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
"repeat-while" loops in Swift
Submitted by
obraztsov
on Tue, 11/10/2015 - 12:14
Forums:
Swift: Loops
var
i =
7
var
f7 =
1
repeat
{
f7 *= i
i--
}
while
i >
0
//f7 is 5040
Log in
to post comments