f1b0bf99ce
[SVN r69774]
20 lines
198 B
Plaintext
20 lines
198 B
Plaintext
/* 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);
|
|
}
|
|
|