pascal 阶乘BackgroundThe problem is simple.You need to calcula
来源:学生作业帮 编辑:大师作文网作业帮 分类:综合作业 时间:2024/11/20 12:13:46
pascal 阶乘
Background
The problem is simple.You need to calculate the number of digit of the factorial of K (1
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.
第一问:
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.
pascal 阶乘BackgroundThe problem is simple.You need to calcula
There is no simple -----(solve)to this problem.
There is another problem need to be solve/solved?
It is a problem we need to get out
pascal编程:阶乘
高精度阶乘(pascal)
高中英语,if not you need to learn some simple skills to be
连词成句 first,to,the,why,know,we,need,to,anomals,problem,is,pro
Simple love is good,which is just what I need.
英语翻译Have received.there is a small problem,that need you bri
problem,out,you,time,math,solve,this,how,need,work,much,to
Sorry,this math problem is a bit difficult for me.I need to