Help for this page

Select Code to Download


  1. or download this
    my $input = shift;
    
  2. or download this
    my @digits = split //, $input;
    
  3. or download this
    $sum += $_ for @digits;
    
  4. or download this
    return $sum % 2;