Aer Interpreter Source
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

25 lines
426 B

class Program {
private int fun(int $y) {
int $result = 1;
for(int $z = 1; $z <= $y; $z++) {
$result *= $z;
}
return $result;
}
public void main() {
int $z;
int $y = 5;
for(int $x = 0; $x < $y; $x++) {
for($z = 0; $z <= ($y - $x - 2); $z++) {
print(' ');
}
for($z = 0; $z <= $x; $z++) {
print($this->fun($x) / ($this->fun($z) * $this->fun($x - $z)), ' ');
}
print("\n");
}
}
}