Maximum Area of a Piece of Cake question - Java

Does anyone know why using int values instead of long causes the final product to be inaccurate for large numbers? The product turns out to be less that 10^6 so I'm not sure why I'm getting the wrong value. Thanks

Comments (1)