counter = 0
x = int(input("Введите число: "))
print("Делители числа:",end=": ")
for i in range(1,x+1):
if x % i == 0:
print(i,end=" ")
counter += 1
print()
print("Их всего:",counter)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
counter = 0
x = int(input("Введите число: "))
print("Делители числа:",end=": ")
for i in range(1,x+1):
if x % i == 0:
print(i,end=" ")
counter += 1
print()
print("Их всего:",counter)