Quảng cáo
1 câu trả lời 371
uses crt;
var a,b: array [1..1000] of integer;
i,n,dem,d: longint;
begin
clrscr;
write('Nhap so luong hoc sinh: '); readln(n);
dem:=0;
d:=0;
for i:=1 to n do
begin
write('nhap diem hoc sinh toan thu ',i,': '); readln(A[i]);
if A[i]>=8 then dem:=dem+1;
write('nhap diem hoc sinh tin thu ',i,': '); readln(B[i]);
if B[i]>=8 then d:=d+1;
end;
Write('So luong hoc sinh toan tu 8 diem tro len la: ',dem);
Write('So luong hoc sinh tin tu 8 diem tro len la: ',d);
readln;
end.
Quảng cáo
Bạn cần hỏi gì?
Câu hỏi hot cùng chủ đề
-
Hỏi từ APP VIETJACK45584
-
Đã trả lời bởi chuyên gia
29017 -
Hỏi từ APP VIETJACK28522
Gửi báo cáo thành công!
