題組內容

三、考慮下列虛擬碼(pseudocode),其中 A 是整數變數,← 為 assignment operator。 
 

⑵將上述虛擬碼的 while-do 迴圈以 repeat-until 迴圈的方式改寫。(5 分)

詳解 (共 1 筆)

詳解 提供者:Joe
A<-1; Repeat A<-A+3; until (A is equal to 10)