1 2 3 4 5 6 7 8 9 10
void sum() { int sum = 0; for (int i = 0; i <= 10; sum += i, ++i) {} cout << sum << endl; } int main() { sum(); }
1
55