Why output is displaying 0 for calculation in java?

Printable View