c++ triple

#include <iostream>

using namespace std;

int main() {
    // Step 1: Declare three variables of type int
    int num1, num2, num3;

    // Step 2: Prompt the user to enter three integers
    cout << "Enter three integers: ";

    // Step 3: Read input from the user and store it in the variables
    cin >> num1 >> num2 >> num3;

    // Step 4: Find the sum of the three integers
    int sum = num1 + num2 + num3;

    // Step 5: Find the average of the three integers
    double average = static_cast<double>(sum) / 3;

    // Step 6: Display the sum and average
    cout << "Sum: " << sum << endl;
    cout << "Average: " << average << endl;

    // Step 7: Return 0 to indicate successful program execution
    return 0;
}