HI, im new to this and was wondering if someone could help me figure out what´s wrong with my code since every time y submit it i get the NZEC error. Its written in pascal. Thank you very much.
program readfile;
uses
crt,dos;
var
a,b,c:integer;
input,output:text;
begin
clrscr;
assign(input, 'c:\input.txt');
reset(input);
assign(output, 'c:\output.txt');
rewrite(output);
readln(input,a);
readln(input,b);
c:=a+b;
write(output,c);
close(input);
close(output);
end.