永发信息网

pascal 阶乘BackgroundThe problem is simple.You need to calcula

答案:1  悬赏:20  手机版
解决时间 2021-08-19 09:28
pascal 阶乘
Background
The problem is simple.You need to calculate the number of digit of the factorial of K (1
最佳答案

首先回答第二问:repeat ... until 布尔表达式.
第一问:
var i,n,j:integer;
s,a:longint;
b:array[1..100]of longint;
begin
readln(n);
a:=1;
for i:= 1 to n do
begin
s:=i;
while s=0 do
begin
a:=a*i;
s:=s-1;
end;
b[i]:=a;
end;
s=0;
for i:=1 to n do s:=b[i]+s;
writeln(s);
end.
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯