Thursday, August 18, 2011

How come i get the wrong result when i run the program?

Could it be that you're using doubles instead of integers? For a basic program like that, it needs no more than long as a maximum.

No comments:

Post a Comment