viết chương trình nhập từ bàn phím tọa độ nguyên (x,y) các đỉnh của một tam giác và ghi vào tệp văn bản theo đường dẫn D:\A.txt theo yêu cầu:
+ tọa độ của mỗi đỉnh nằm trên một dòng
+các số nguyên cách nhau bởi một khoảng cách tương ứng
Sau đó xem dữ liệu đã ghi vào tệp
program bai_tap;
var i,x,y:integer;
begin
assign(output,'D:\A.txt');
rewrite(output);
for i:= 1 to 3 do
begin
read(x,y);
writeln(x,' ',y);
end;
close(output);
end.