int main() { int s = 0; for (char *p = "8790278573"; *p; s+= *p++ -'0'); cout << "sum " << s << endl; }