Given a natural number N. Determine K – the number of divisors of this number, not exceeding it (N = 12, its divisors are 1, 2, 3, 4, 6, K = 5)

Uses crt;
var n,i,k:integer;
begin
read(n);
for i:=1 to n-1 do
if i mod k=0 then
k:=k+1;
writeln(k);
end.

на python:

n=int(input())
k=0
for i in range(1, n):
if n%i==0:
k+=1
print(k)



One of the components of a person's success in our time is receiving modern high-quality education, mastering the knowledge, skills and abilities necessary for life in society. A person today needs to study almost all his life, mastering everything new and new, acquiring the necessary professional qualities.