T:=1. For k:= 3 to 9 do T:=t*i; chuyển sang while do
Hãy nhập câu hỏi của bạn vào đây, nếu là tài khoản VIP, bạn sẽ được ưu tiên trả lời.
+Đoạn1
\n\nT:=0; n:=0;
\n\nWhile T<=5 do
\n\nBegin
\n\nn:=n+1; T:=T+n; end;
\n\nVòng 1: T<=5 ---> Đúng ---> n=1 ---> t=1
\n\nVòng 2: T<=5 ---> đúng ---> n=2 ---> t=3
\n\nVòng 3: T<=5 ---> đúng ---> n=3 ---> t=6
\n\nT<=5 ---> ĐK sai kết thúc vòng lặp. Khi đó giá trị n=3; T=6
\n\nCâu b tương tự bạn nhé
\nĐoạn chương trình
For I:=1 to M do { I chạy trong phạm vi từ 1 đến M}
If (I mod 3 = 0) and (I mod 5 = 0) then { kiểm tra I chia hết cho 3 và cho 5 không}
T := T + I; {Cộng dồn vào tổng}
Đáp án: B
1.Would u mind watting for me outside the office
--->How about waiting for me outside the office
2.It is said that the earth was originally part of the sun
--->The earth is originally part of the sun
3.Bill never does anything if you don't tell him what to do
--->unless you tell Bill what to do, he never does anything
4.I was sorry I didn't know how to do it
--->I wish I knew how to do it
1.Would u mind watting for me outside the office
--->How about waiting for me outside the office
2.It is said that the earth was originally part of the sun
--->The earth is originally part of the sun
3.Bill never does anything if you don't tell him what to do
--->unless you tell Bill what to do, he never does anything
4.I was sorry I didn't know how to do it
--->I wish I knew how to do it