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