Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Python Challenge -- Level 0 -- Solution

Code

import tango.io.Stdout;
import tango.math.core;

void main () {
        Stdout.print(pow(2.0L, 38u)).flush();
}

Explanation

        Stdout.print(pow(2.0L, 38u)).flush();

tango.math.pow is used to raise an arbitrary floating point number to an arbitrary power. This example does 238. The result is printed to the screen.