- or download this
IF not condition THEN GOTO 10
I = 1
...
10
I = 2
20
- or download this
INTEGER II;
...
ELSE
II = 2
ENDIF
- or download this
int i = ( condition ) ? 1 : 2;
- or download this
{
my $temp = $a[ $i ];
$a[ $i ] = $a[ $j ];
$a[ $j ] = $temp;
}
- or download this
@a[ $i, $j ] = @a[ $j, $i ];
- 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
}
- or download this
not $year % 4 xor $year % 100 xor $year % 400;