Câu 5:
a. Lệnh khai báo mảng A: A:array[1..10] of integer;
b. Lệnh in giá trị của phần tử thứ 10: Writeln(A[10]); (hoặc write(A[10]) đều được).
c. Lệnh nhập dữ liệu cho mảng A:
Repeat
Write('Nhap n= '); readln(n);
Until (n<=10);
For i:=1 to n do
Begin
Write('A[',i,']= '); readln(A[i]);
End;