Gitiles
Code Review
Sign In
gerrit.openbmc.org
/
openbmc
/
phosphor-host-ipmid
/
1b9d4e5c676f5f2fd35583dc5e3459783a650578
/
.
/
sample.cpp
blob: 451c6c4bac1199e666e9ad1bc325ad8be3ec2341 [
file
] [
log
] [
blame
]
#include
<sample.h>
int
Factorial
(
int
n
)
{
int
result
=
1
;
for
(
int
i
=
1
;
i
<=
n
;
i
++)
{
result
*=
i
;
}
return
result
;
}