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

Python Challenge -- Level 0 -- Alternate Solution

Code

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

void main () {
        Stdout.print(exp2(38)).flush();
}

Explanation

        Stdout.print(exp2(38)).flush();

tango.math.exp2 is used to raise 2 to an arbitrary power. This example does 238. The result is printed to the screen.