Name: Anonymous 2011-01-08 22:28
-3 % 9 == 6
http://www.wolframalpha.com/input/?i=-3%259
but
outputs:
-3
instead of 6
why?
http://www.wolframalpha.com/input/?i=-3%259
but
//Java and C both do this
void main()
{
printf("%d", -3%9);
}outputs:
-3
instead of 6
why?