Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
176 B
2
Indexable
// 1 
#include <iostream>
using namespace std;
int main()
{
	int a;
	cin >> a;
	int t = 0;
	while (a != 0) {
		t += a % 10;
		a /= 10;
	}
	cout << t;
	return 0;
}