câu1 : các câu lệnh sau đúng hay sai,nếu sai sửa lại cho đúng
a) while i:= 1 to t:=10;
b) for i:=1 to 10 do x:=x+1;
c) x;array [-7..7] of integer;
d) b:array[1..n] of read
câu1 : các câu lệnh sau đúng hay sai,nếu sai sửa lại cho đúng
a) while i:= 1 to t:=10;
b) for i:=1 to 10 do x:=x+1;
c) x;array [-7..7] of integer;
d) b:array[1..n] of read
a) sai:
-điều kiện ko có :
– sai từ khóa to
sửa: while i=1 do t:=10;
b) đúng
c) sai:
– sao biến x có ;
– giá trị đầu là số âm
sửa: x:array[1..7] of integer;
d)
sai thiếu ; giá trị cuối sai tên kiểu dữ liệu
sửa: b:array[1..10] of real;
chúc bạn học tốt
a, while i:=1 to t:=10 do -> sai
-> while i:=1 to t do
hoặc while i:=1 to 10 do
b, for i:=1 to 10 do x:=x+1; -> đúng
c, x;array[-7..7] of integer; -> sai
-> x:array[1..7] of integer;
d, b:array[1..n] of read -> sai
-> b:array[1..100] of real;