10 lines
270 B
Text
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
|