x=int(input("donner un entier a 3 chiffres:"))

u= x % 10
d= (x//10) % 10
c= x // 100
print("la somme=",u + d + c)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: