pgm to evaluate arithmetic expressions