Professional Documents
Culture Documents
b/
Chương trình tham khảo Điểm
Var
n,i:Integer; 0,5
s:Real;
BEGIN
Write(‘Nhap so tu nhien n=');Readln(n);
While ((n<=5) OR (n>100) do
1
Begin
Write(‘Nhap lai n thoa man 5 < n <=100, n = ');Readln(n);
end;
s:=0;
For i:=1 to n do s:=s+i*(i+1)/((i+2)*(i+3));
1
Write(‘tong la s=’,s:4:3);
Readln
END.
Bài 2
Bài 3
Writeln(‘ Day b[i] tổng giá trị của i phần tử đầu tiên của dãy số A. la :');
For i:= 1 to n do
Write(B[i]:5); 0,5
Readln;
End.
Bài 4. (5 điểm)
for i:=1 to n do
if a[i]=max then writeln(' so co nhieu uoc nhat la ',i);
readln 1.0
end.
----------------------------------------------------------------------------------