pascal

2007-03-29 5:25 am
program stage25;
uses wincrt;
const
a = 4;
b = 12;
c = 99;
d = 2099;
var
e, f, g, i : integer;
h : real;
begin
e := sqr(a);
i := 3 * a + e;
f := d - c;
h := f / 12;
g := trunc(h);
writeln('the answer is ' ,a+b+c+d+e+f+g+i);
end.

我想知個answer,但唔識睇pascal,搵人幫下我

回答 (2)

2007-03-29 5:35 am
✔ 最佳答案
the answer is 4424

2007-03-28 21:39:42 補充:
e = 16i =28f = 2000h = 1.6666666667E 02g = 166So ans = 4424I run the program on Pascal once.

2007-03-28 21:40:18 補充:
h = 1.6666666667E + 02
2007-03-29 5:34 am
The computer will show as follows:

the answer is 4414


收錄日期: 2021-04-12 21:15:03
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20070328000051KK04201

檢視 Wayback Machine 備份