Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: I_am_me
Problemset: ผลรวมของเลขหลัก
Language: cpp
Time: 0.003 second
Submitted On: 2025-09-23 19:47:35
#include<iostream>
#include<cstring>
using namespace std;
int main() {
char text[13];
int count;
cin >> text;
count = 0;
for (int i = 0; i < strlen(text); i++) {
count += text[i]-48;
}
cout << count;
}