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
"do-while" loop in Java
Submitted by
obraztsov
on Fri, 10/14/2016 - 15:55
Forums:
Java: Loops
int
i
= 7;
int
f7
= 1;
do
{
f7
*=
i
;
i
--;
}
while
(
i
> 1);
//f7 is 5040
Log in
to post comments