#include <iostream>
using namespace std;

int main()
{
    double num_one, num_two, num_three, num_four, num_five, num_six, num_seven, num_eight, sum, product, average;
    char ans;


     cout << "Please enter eight numbers: "<< end; 
        cin >> num_one >> num_two >> num_three >> num_four>> num_five >> num_six >> num_seven >> num_eight;


        cout << "The sum of the numbers is: " << endl;
        sum =num_one + num_two + num_three + num_four + num_five+ num_six + num_seven + num_eight;
        cout << sum << end1;

        cout << "The product of the numbers is: " << endl;
        product = num_one * num_two * num_three * num_four * num_five * num_six * num_seven * num_eight;
        cout << product << endl;

        cout << "The average of the numbers is: " << endl;
        average = (num_one + num_two + num_three + num_four + num_five + num_six + num_seven + num_eight)/8;
        cout << average << end1;

return 0
}

Recommended Answers

All 4 Replies

and the errors are?? .....

I've spotted three right off the bat.

The question is..Find them..
Got one, nah two, annnnd...another one!..
Here u go..

1. double num_one, ...;
2. char ans;
3. average = (...)/8;

The first error was not reading all the forum rules about using code tags.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.