Skip to content

Commit 0341b80

Browse files
Merge pull request #3176 from LAbhilashKumar/master
negative numbers sum
2 parents 705359b + 66fbb2d commit 0341b80

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)