Simple Calc Question

I am not getting the output int he desired format what change should i make in my code?