blob: 381de7caf316d1147dc23c09c83d9364cccd602d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
fac(x:int):int
{
res:int = 1
while (x > 0) {
res = x*res
x = x - 1
}
return res
}
main():int
{
return fac(5)
}
//@PRACOWNIA
//@out Exit code: 120
|