#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
}
pochacco 0 Newbie Poster
Agni 370 Practically a Master Poster Featured Poster
MosaicFuneral 812 Nearly a Posting Virtuoso
cikara21 37 Posting Whiz
Salem 5,199 Posting Sage
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.