Re: How to use Power on D

2013-06-12 Thread Carlos
On Thursday, 13 June 2013 at 00:27:33 UTC, bearophile wrote: Carlos: Thank you for your time. That's one bitwise operator. You want ^^ Bye, bearophile I didn't understoof in the first try but Infiltrator told me on the #d irc chat and here is the new code. import std.stdio; import std.c

Re: How to use Power on D

2013-06-12 Thread bearophile
Carlos: Thank you for your time. That's one bitwise operator. You want ^^ Bye, bearophile

Re: How to use Power on D

2013-06-12 Thread Infiltrator
On Thursday, 13 June 2013 at 00:24:18 UTC, Carlos wrote: So I have this code I'm working on but I get weird results. What am I doing wrong ? Code : import std.stdio; import std.c.stdlib; void main() { foreach (count; 1 .. 16){ write("Result : ", (2)^(count), " from : ", count, "\n");