Skip to main content
Code sample in Swift, C# and Java
Main menu
About
History
Swift
C#
Java
Python
You are here
Home
»
Forums
»
Java
»
Java: Control flow
»
Java: Loops
"while" loop in Java
Submitted by
obraztsov
on Fri, 10/14/2016 - 15:56
Forums:
Java: Loops
int
i
= 5;
int
f5
= 1;
while
(
i
> 1) {
f5
*=
i
;
i
--;
}
//f5 is 120
Log in
to post comments