Những câu hỏi liên quan
Nguyễn Thị Bích Trâm
Xem chi tiết
Nguyễn Lê Phước Thịnh
11 tháng 11 2021 lúc 23:33

s=25

t=32

Bình luận (0)
Võ Thành Ty
Xem chi tiết
Minh Lệ
13 tháng 5 2019 lúc 19:17

Lời giải :

Lỗi sai = ( )

1) While i(:)=1 do t:=10;

3) For i:=1 to 10 (;) do x:=x+1;

4) i:=1; while i<10 do sum:=sum+i; i:=i+1; ( câu lệnh này vẫn chạy được nhưng phải đặt trong begin...end;)

i:=1; while i<10 do ( begin) sum:=sum+i; i:=i+1; (end; )

Bình luận (0)
Le Phan
Xem chi tiết
Minh Lệ
7 tháng 5 2020 lúc 12:33

- Đoạn 1: T=6; n=3

- Đoạn 2: j=5; k=5

Bình luận (0)
Bảo Ân
Xem chi tiết
Nguyễn Lê Phước Thịnh
26 tháng 4 2020 lúc 15:38

Phần II: Bài tập

Câu 1:

Sau khi thực hiện chương trình, chương trình sẽ báo lỗi thiếu begin

Câu 2:

uses crt;

var i,n:integer;

s:real;

begin

clrscr;

write('n='); readln(n);

s:=0;

for i:=1 to n do

s:=s+1/i;

writeln(s:4:2);

readln;

end.

Bình luận (0)
Nguyễn Viễn
Xem chi tiết
tranthinhiphuong
Xem chi tiết
Hà Thanh Thảo
Xem chi tiết
Online Math
Xem chi tiết
✿✿❑ĐạT̐®ŋɢย❐✿✿
5 tháng 7 2019 lúc 18:26

1 "Will it be safe to stay in the mountains for the night if the weather doesn't change for the better?" we asked the guide.

--> We asked the guide if it would be safe to stay in the mountains for the night if the weather didn’t changed for the better.

2.The porter said to me, "I'll wake you up, when the train arrives in Leeds."

--> The porter told me he would wake me up when the train arrived in Leeds.

3.My wife said to me: "While you are away, I'll do the packing."

--> My wife told me that she would do the packing while I was away.

4. "After he leaves hospital, they'll take him to the South," the doctor said.

--> The doctor said that after he left hospital they would take him to the South.

Bình luận (0)
B.Thị Anh Thơ
5 tháng 7 2019 lúc 18:36

1 "Will it be safe to stay in the mountains for the night if the weather doesn't change for the better?" we asked the guide.

\(\rightarrow\) We asked the guide if it would be safe to stay in the mountains for the night if the weather didn’t changed for the better.

2.The porter said to me, "I'll wake you up, when the train arrives in Leeds."

\(\rightarrow\) The porter told me he would wake me up when the train arrived in Leeds.

3.My wife said to me: "While you are away, I'll do the packing."

\(\rightarrow\) My wife told me that she would do the packing while I was away.

4. "After he leaves hospital, they'll take him to the South," the doctor said.

\(\rightarrow\) The doctor said that after he left hospital they would take him to the South.

Bình luận (0)
Hà Thanh Thảo
Xem chi tiết