This commit is contained in:
2025-12-11 18:01:56 +05:00
commit bfa7413f9c
38 changed files with 651 additions and 0 deletions

15
task_26.py Normal file
View File

@@ -0,0 +1,15 @@
n = int(input("Введите число n: "))
for num in range(1, n + 1):
divisor_count = 0
for i in range(1, num + 1):
if num % i == 0:
divisor_count += 1
print(f"{num} ", end="")
for i in range(divisor_count):
print("*", end="")
print()