Calkin-Wilf sequence: Difference between revisions

→‎{{header|ALGOL 68}}: Use the Algol 68 MOD operator as per the revised Algol 68 sample for the Continued fraction/Arithmetic/Construct from rational number task
(Added Algol 68)
(→‎{{header|ALGOL 68}}: Use the Algol 68 MOD operator as per the revised Algol 68 sample for the Continued fraction/Arithmetic/Construct from rational number task)
Line 132:
INT prev numerator = numerator;
numerator := denominator;
denominator := prev numerator - ( quotient *MOD denominator );
quotient
FI # r2cf # ;
3,022

edits