Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
ba045e44fbc13a4a8bcfa03689115fd0a25366a9
/
.
/
compiler
/
testData
/
codegen
/
script
/
topLevelFunction.kts
blob: 1592b7f22b5e5a9dce80273b3e192b656bf8560c [
file
] [
log
] [
blame
]
// expected: rv: 3628800
fun factorial
(
n
:
Int
):
Int
{
var
product
=
1
for
(
i
in
1.
.
n
)
{
product
*=
i
}
return
product
}
val rv
=
factorial
(
10
)