[理工] [計導] 97中興資工

看板Grad-ProbAsk作者 (Maiko)時間14年前 (2010/03/10 21:11), 編輯推噓2(200)
留言2則, 2人參與, 最新討論串1/1
(a) Describe the differences between a compiler and an interpreter. (b) Describe the differences between the count-controlled loop and the event-controlled loop. 請問上面這兩題要怎麼解釋比較好?? (c) Output the values of SUM in each program segments: (1) SUM :=10; For Outer := 1 to 10 For Inner := 1 to Outer SUM := SUM + Inner; Write SUM; (2) SUM :=0; For Outer := 1 to 10 For Inner := Outer to 10 SUM := SUM + Inner; Write SUM; (1) 230 (2) 385 不知到對不對 是否能請大大們算看看 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 125.230.7.137

03/10 21:26, , 1F
yes
03/10 21:26, 1F

03/11 16:00, , 2F
我trace超久才算出來...= =
03/11 16:00, 2F
文章代碼(AID): #1Bbvfp0t (Grad-ProbAsk)