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

11
task_20.py Normal file
View File

@@ -0,0 +1,11 @@
n = int(input("Введите число n: "))
for num in range(100, 1000):
digit1 = num // 100
digit2 = (num // 10) % 10
digit3 = num % 10
if digit1 + digit2 + digit3 == n:
print(num, end=" ")
print()