I'll just give you a hint.
It works fine as is, except, check the punctuation in the two echo statements. Remember that "`" backtics have special meaning in bash.
Also you removed the test to determine if P2 is equal to 0 but you only check for that condidion once, e.g. if P1 > P3 then you dont check P2 for 0 so you could get into a loop.
|