fork download
  1. program ideone;
  2. var c, temp: char;
  3. a, b: longint;
  4. begin
  5. read(a, temp, c, temp, b);
  6. if c = '+' then writeln(a + b) else writeln(a - b);
  7. end.
Success #stdin #stdout 0s 340KB
stdin
228 + 13
stdout
241