Sign in
android
/
platform
/
external
/
sdv
/
vsomeip
/
74879618
/
.
/
third_party
/
boost
/
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
);
}