Help for this page

Select Code to Download


  1. or download this
    (defun sum_from_to(TERM from NEXT to)
        (IF (> from to)
    ...
    
    (print (sum-int 3 5))
    (print (sum-sq 3 5))
    
  2. or download this
    #!/usr/bin/perl
    use strict; use warnings; use feature qw(say);
    ...
    
    say sum_int(3,5);
    say sum_sq(3,5);