read_prog.mod 236 B

1234567891011
  1. MODULE ReadProg;
  2. (* Reads two integers from stdin, prints their sum. *)
  3. FROM SysIO IMPORT ReadInt, WriteInt, WriteLn;
  4. VAR a, b, s : INTEGER;
  5. BEGIN
  6. a := ReadInt();
  7. b := ReadInt();
  8. s := a + b;
  9. WriteInt(s);
  10. WriteLn
  11. END ReadProg.