[理工] [計導] 97中興資工
(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
03/10 21:26, 1F
推
03/11 16:00, , 2F
03/11 16:00, 2F