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

Expert's answer

`#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;

}

## Comments

## Leave a comment