first commit
This commit is contained in:
commit
063194f8be
349 changed files with 36508 additions and 0 deletions
19
tester/testsuite/good/core010.jl
Normal file
19
tester/testsuite/good/core010.jl
Normal file
|
@ -0,0 +1,19 @@
|
|||
// count function parameters as initialized
|
||||
|
||||
int main() {
|
||||
printInt(fac(5));
|
||||
return 0 ;
|
||||
}
|
||||
|
||||
int fac (int a) {
|
||||
int r;
|
||||
int n;
|
||||
r = 1;
|
||||
n = a;
|
||||
while (n > 0)
|
||||
{
|
||||
r = r * n;
|
||||
n = n - 1;
|
||||
}
|
||||
return r;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue