Because, by default, numbers without decimal point are considered ints, so you're multiplying ints and then storing the result in a long. But the result is bigger than maximun int, so you start over zero again.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.