看板 Grad-ProbAsk 關於我們 聯絡資訊
(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
lightergogo:yes 03/10 21:26
gn00618777:我trace超久才算出來...= = 03/11 16:00