Объяснить работу программы для вычисления сколько нулей в факториале (Паскаль) var
n,x,s: integer;
begin
s:=0;
readln(n);
x:=5;
while x <= n do
begin
inc(s, n div x);
x:= x * 5
end;
writeln(s);
end.
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Copyright © 2025 SCHOLAR.TIPS - All rights reserved.