Answer to Question #44001 in C++ for kevin

Question #44001
Write a program that takes as input three numbers and outputs the mean (average) and standard deviation of the numbers. If the numbers are x1, x2, and x3, then the mean(average) is x=(x1+x2+x3)/3
1
Expert's answer
2014-07-07T15:38:33-0400
#include <iostream>
int main() {
int a, b, c;
std::cout << "Enter 3 digits" << std::endl;
std::cin >> a >> b >> c;
std::cout << "Average is " << (a + b + c) / 3 << std::endl;
return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS