first commit
This commit is contained in:
commit
063194f8be
349 changed files with 36508 additions and 0 deletions
16
tester/testsuite/good/core015.jl
Normal file
16
tester/testsuite/good/core015.jl
Normal file
|
@ -0,0 +1,16 @@
|
|||
/* parity of positive integers by recursion */
|
||||
|
||||
int main () {
|
||||
printInt(ev(17)) ;
|
||||
return 0 ;
|
||||
}
|
||||
|
||||
int ev (int y) {
|
||||
if (y > 0)
|
||||
return ev (y-2) ;
|
||||
else
|
||||
if (y < 0)
|
||||
return 0 ;
|
||||
else
|
||||
return 1 ;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue