Skip to content

Commit 66fbb2d

Browse files
committed
negative numbers sum
1 parent f5d5080 commit 66fbb2d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

negative.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
a= abs(int(input("enter any number")))
2+
b=0
3+
for i in str(a):
4+
b+=int(i)
5+
6+
print(b)

0 commit comments

Comments
 (0)