count numbers that add up to 10 in python
# print numbers that add up to 10. (19 => 1 + 9 = 10)
x = 0
for i in range(100):
for j in str(i):
x+=int(j)
if x == 10:
print(i)
x = 0
# - sabz
count numbers that add up to 10 in python
# print numbers that add up to 10. (19 => 1 + 9 = 10)
x = 0
for i in range(100):
for j in str(i):
x+=int(j)
if x == 10:
print(i)
x = 0
# - sabz
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us