Help for this page

Select Code to Download


  1. or download this
        IF not condition THEN GOTO 10
        I = 1
    ...
    10
        I = 2
    20
    
  2. or download this
        INTEGER II;
    
    ...
        ELSE
            II = 2
        ENDIF
    
  3. or download this
    int i = ( condition ) ? 1 : 2;
    
  4. or download this
    {
        my $temp = $a[ $i ];
        $a[ $i ] = $a[ $j ];
        $a[ $j ] = $temp;
    }
    
  5. or download this
    @a[ $i, $j ] = @a[ $j, $i ];
    
  6. or download this
    sub isleap {
        my ($year) = @_;
    ...
        return 1 if (( $year % 4 ) == 0 ); # All other 4's are leap
        return 0; # Everything else is not
    }
    
  7. or download this
    not $year % 4 xor $year % 100 xor $year % 400;