uses crt;
var a, b, tong, hieu, tich : integer;
thuong : real;
f1, f2 : text;
begin
clrscr;
assign(f1, 'INP.TXT'); reset(f1);
assign(f2, 'OUT.TXT'); rewrite(f2);
readln(f1, a, b);
tong := a + b;
hieu := a - b;
tich := a * b;
thuong := a / b;
writeln(f2, tong);
writeln(f2, hieu);
writeln(f2, tich);
writeln(f2, thuong:4:1);
close(f1); close(f2);
readln;
end.
Chúc bạn học tốt!
_thanhtrong_