int sumNumbers(int n) {int sum = 0;
}
int main() {int n;std::cout << "Enter a number: ";std::cin >> n;
int sumNumbers(int n) {
for (int i = 1; i <= n; i++) {int sum = 0;
sum += i;
}
return sum;
}
int main() {
std::cout << "Sum of numbers from 1 to " << n << " is: " << sumNumbers(n) << std::endl;int n;
std::cout << "Enter a number: ";
std::cin >> n;
return 0;
}