C语言求三个数的平均值 #include<stdio.h> int main() { double a, b, c; scanf_s("%lf%lf%lf", &a, &b, &c); printf("%.3f", (a + b + c) / 3); }