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