Convert carriage return and line feed to line feed (UNIX line ending).
All checks were successful
The build was successful.
All checks were successful
The build was successful.
This commit is contained in:
@@ -1,25 +1,25 @@
|
||||
class Program {
|
||||
|
||||
string cycle(char $a, char $b, int $i = 0) {
|
||||
static char[] $switches;
|
||||
if($switches[$i])
|
||||
$switches[$i] = !$switches[$i];
|
||||
else
|
||||
!($switches[$i] = true);
|
||||
return ($switches[$i]) ? $a : $b;
|
||||
}
|
||||
|
||||
void main() {
|
||||
class Program {
|
||||
|
||||
string cycle(char $a, char $b, int $i = 0) {
|
||||
static char[] $switches;
|
||||
if($switches[$i])
|
||||
$switches[$i] = !$switches[$i];
|
||||
else
|
||||
!($switches[$i] = true);
|
||||
return ($switches[$i]) ? $a : $b;
|
||||
}
|
||||
|
||||
void main() {
|
||||
int $i, $j, $k;
|
||||
for($i = 1; $i < 3; $i++) {
|
||||
print($i + $this->cycle('a', 'b') + PHP_EOL);
|
||||
for($j = 1; $j < 5; $j++) {
|
||||
print(' ' + $j + $this->cycle('a', 'b', 1) + PHP_EOL);
|
||||
for($k = 1; $k < 3; $k++) {
|
||||
print(' ' + $k + $this->cycle('c', 'd', 2) + PHP_EOL);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
for($i = 1; $i < 3; $i++) {
|
||||
print($i + $this->cycle('a', 'b') + PHP_EOL);
|
||||
for($j = 1; $j < 5; $j++) {
|
||||
print(' ' + $j + $this->cycle('a', 'b', 1) + PHP_EOL);
|
||||
for($k = 1; $k < 3; $k++) {
|
||||
print(' ' + $k + $this->cycle('c', 'd', 2) + PHP_EOL);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user