Data update
This commit is contained in:
parent
ed705008a8
commit
0df55f9f24
2196 changed files with 32999 additions and 3075 deletions
14
Task/Factorial/Refal/factorial.refal
Normal file
14
Task/Factorial/Refal/factorial.refal
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
$ENTRY Go {
|
||||
= <Facts 0 10>;
|
||||
}
|
||||
|
||||
Facts {
|
||||
s.N s.Max, <Compare s.N s.Max>: '+' = ;
|
||||
s.N s.Max = <Prout <Symb s.N>'! = ' <Fact s.N>>
|
||||
<Facts <+ s.N 1> s.Max>;
|
||||
};
|
||||
|
||||
Fact {
|
||||
0 = 1;
|
||||
s.N = <* s.N <Fact <- s.N 1>>>;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue