#include <iostream>
// Declare a function named 'addNumbers' that takes two integers as parameters and returns their sum.
int addNumbers(int a, int b);
int main() {
// Declare two integer variables 'num1' and 'num2' and initialize them with values.
int num1 = 5;
int num2 = 7;
// Call the 'addNumbers' function with 'num1' and 'num2' as arguments, and store the result in 'sum'.
int sum = addNumbers(num1, num2);
// Display the result using cout.
std::cout << "The sum of " << num1 << " and " << num2 << " is: " << sum << std::endl;
// Return 0 to indicate successful completion of the program.
return 0;
}
// Define the 'addNumbers' function to calculate the sum of two integers.
int addNumbers(int a, int b) {
// Return the sum of the two parameters.
return a + b;
}