Add TextWriter, IOException, per-VM module data and pre-load imports; Add console module with Console class
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import 'console';
|
||||
// A simple C program to calculate Euler's Totient Function
|
||||
class Program {
|
||||
|
||||
@@ -22,7 +23,7 @@ class Program {
|
||||
public int main() {
|
||||
int $n;
|
||||
for($n = 1; $n <= 10; $n++)
|
||||
printf("phi(%d) = %d\n", $n, $this->phi($n));
|
||||
Console::Print("phi(%d) = %d\n", $n, $this->phi($n));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user