This website works better with JavaScript
Halaman utama
Jelajahi
Bantuan
Daftar
Masuk
AOJTeam
/
Contest1470
Liatin
5
Bintangi
0
Fork
0
Berkas
Masalah
0
Tarik Permintaan
0
Wiki
Cabang:
master
Ranting
Tag
master
Contest1470
/
1470G.py
1470G.py
118 B
Permalink
Riwayat
Mentahan
1
2
3
4
5
6
7
8
while True:
n = int(input().strip())
s = 0
while n > 0:
s += n % 10
n //= 10
print(s)