Displaying temperature and pressure at the same time using java

PaulS:
No. You are still dividing by a, even if a is 0.

Oh yeah. So how you suggest me to change it? I would have to change to another equation?