給n賦值
令k=1
當(dāng)k<=4時,重復(fù)步驟4-8
令j=1/2n
當(dāng)j>=1時,重復(fù)步驟6-7
打印j的值
令j等于原來值的一半(即j=1/2j)
k加1
停止
第三項 是指做完4-7得出j的值之后然后再在8處k+1, 然后還用不用返回第三項?
英語翻譯
英語翻譯
1.Get value for
n
2.Set the value of
k to 1
3.While k is less than or equal to
n,do steps 4 through
8
4.Set the value of
j to one-half n
5.While j is greater than or equal to
1,do steps 6 through 7
6.Print
the value of j
7 Set the value
of j to one-half its former value
8.Increase
k by 1
9.Stop
請擅長于英語的人幫忙翻譯成比較容易理解的語句 最好可以配合簡式
1.Get value for
n
2.Set the value of
k to 1
3.While k is less than or equal to
n,do steps 4 through
8
4.Set the value of
j to one-half n
5.While j is greater than or equal to
1,do steps 6 through 7
6.Print
the value of j
7 Set the value
of j to one-half its former value
8.Increase
k by 1
9.Stop
請擅長于英語的人幫忙翻譯成比較容易理解的語句 最好可以配合簡式
英語人氣:434 ℃時間:2020-05-26 03:21:51
優(yōu)質(zhì)解答
我來回答
類似推薦
猜你喜歡
- 19分之8×10分之3 還有3分之1×4分之1還有6×12分之11
- 2用exercise和dress的適當(dāng)形式填空 (請看問題補充)
- 3甲乙丙三位同學(xué)都喜歡集郵,甲有郵票18張,相當(dāng)于乙的3/4,丙的郵票張數(shù)跟乙的張數(shù)的比恰好是2:3
- 4Everyone is busy() ready for Christmas A.to get B.getting C.got D.gets
- 5函數(shù)不能嵌套定義是什么意思
- 6幫忙解答下《假如你想做一株臘梅》有關(guān)題目
- 7形容兩個人的感情幸福的四字成語
- 8某班7個興趣小組人數(shù)分別為3,3,4,x,5,6,已知這組數(shù)據(jù)的平均數(shù)是4,則這組數(shù)據(jù)的中位數(shù)是?
- 9東南亞的主要礦產(chǎn)和分布?
- 10根據(jù)所給的首字母提示,用合適的單詞填空,
- 11Could you tell me ___ with the money?A hou to do B what should I do C how should I do
- 12“小大之獄,雖不能察,必以情”與“忠之屬也”之間的內(nèi)在聯(lián)系是什么