A)
for i in range(11):
print(20-i)
B)
res = 0
for i in range(5):
res += (i+1)**2
print(res)
C)
def printDivisors(n) :
i = 1
while i <= n :
if (n % i==0) :
print(i)
i = i + 1
printDivisors(int(input("num: ")))
Copyright © 2025 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
A)
for i in range(11):
print(20-i)
B)
res = 0
for i in range(5):
res += (i+1)**2
print(res)
C)
def printDivisors(n) :
i = 1
while i <= n :
if (n % i==0) :
print(i)
i = i + 1
printDivisors(int(input("num: ")))