Help for this page

Select Code to Download


  1. or download this
    my $num1 = 150;
    my $num2 = 1000;
    
    ...
        print "Largest common divisor is $divisor\n";
      last;
    }
    
  2. or download this
    print euclid(15000,1260);
    
    ...
       my( $a, $b ) = @_;
     return ($b) ? euclid( $b, $a % $b ) : $a;
    }