n = int(input("n: "))
if 0 < n <= 27:
for i in range(1,10):
for j in range(10):
for k in range(10):
if i+j+k == n:
print(f"{i}{j}{k}")
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
n = int(input("n: "))
if 0 < n <= 27:
for i in range(1,10):
for j in range(10):
for k in range(10):
if i+j+k == n:
print(f"{i}{j}{k}")