Sign in
nest-open-source
/
nest-cam
/
4320010
/
boost
/
62d1066a6d52d5ac4e10c106f0eab14c820be0ce
/
.
/
boost
/
libs
/
spirit
/
example
/
qi
/
compiler_tutorial
/
conjure_samples
/
pow2.cnj
blob: 4d22fd70cfd4cc3aa6b016465b0f2f24d39998e3 [
file
] [
log
] [
blame
]
/* My first conjure program */
int
pow2
(
n
)
{
int
a
=
2
;
int
i
=
1
;
while
(
i
<
n
)
{
a
=
a
*
2
;
i
=
i
+
1
;
}
return
a
;
}
int
main
()
{
return
pow2
(
10
);
}