C++ ss
#include <iostream>
// Function to calculate the sum of two numbers
int add(int a, int b) {
return a + b;
}
int main() {
// Declare and initialize two integer variables
int num1 = 5;
int num2 = 10;
// Call the add function and store the result in a variable
int result = add(num1, num2);
// Print the result to the console
std::cout << "Sum of " << num1 << " and " << num2 << " is: " << result << std::endl;
// Return 0 to indicate successful program execution
return 0;
}