RosettaCodeData/Task/A+B/Argile/a+b-2.argile
2023-07-01 13:44:08 -04:00

10 lines
270 B
Text

(: Input file : input.txt :)
(: Output file: output.txt :)
use std, array
let in = fopen "input.txt" "r"
let out = fopen "output.txt" "w"
let int x, y.
Cfunc fscanf in "%d%d" (&x) (&y) (:fscanf not yet defined in std.arg:)
fprintf out "%d\n" (x+y)
fclose in
fclose out