Cod sursa(job #42096)
Utilizator | Data | 28 martie 2007 20:44:22 | |
---|---|---|---|
Problema | A+B | Scor | 10 |
Compilator | fpc | Status | done |
Runda | Arhiva de probleme | Marime | 0.23 kb |
var a,b:integer;f1,f2:text;
begin
Assign(f1,'adunare.in');reset(f1);
Assign(f2,'adunare.out');rewrite(f2);
while not eoln(f1)do read(f1,a);
readln;
while not eoln(f1)do read(f1,b);
write(f2,a+b);
close(f1);
close(f2);
end.