Changes between Version 1 and Version 2 of PythonChallenge0Alt
- Timestamp:
- 08/29/06 22:18:44 (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PythonChallenge0Alt
v1 v2 9 9 10 10 void main () { 11 Stdout.print( cast(long)exp2(38));11 Stdout.print(exp2(38)).flush(); 12 12 } 13 13 }}} 17 17 {{{ 18 18 #!d 19 Stdout.print( cast(long)exp2(38));19 Stdout.print(exp2(38)).flush(); 20 20 }}} 21 21 22 tango.math.exp2 is used to raise 2 to an arbitrary power. This example does 2^38^. The number is then cast to long so that it will be displayed in integer format instead of as a floating point. Theresult is printed to the screen.22 tango.math.exp2 is used to raise 2 to an arbitrary power. This example does 2^38^. The result is printed to the screen.