RPN计算器ProgramInputEachlineoftheinputfile(prob12.in)containsaseriesofnumbersandoperators.TheprogrammustevaluatetheselinesasRPNexpressions.Alltokensareseparatedbyoneormorespaces.Numbersmaybenegative.Validoperatorsare+(addition),-(subtraction),*(multiplication)and/(division).ThelastlineofthefilecontainsonlythewordEND:1637+*432.12513–*20+5–3*42/631–/++ENDProgramOutputTheprogramwillprintthecomputedresultofeachRPNexpressiononaseparateline.16096.5-10
1