diff --git a/第一讲 变量、输入输出、表达式与顺序语句/607.cpp b/第一讲 变量、输入输出、表达式与顺序语句/607.cpp new file mode 100644 index 0000000..15bfc00 --- /dev/null +++ b/第一讲 变量、输入输出、表达式与顺序语句/607.cpp @@ -0,0 +1,9 @@ +#include + +int main() +{ + float a, b, c; + scanf("%f%f%f", &a, &b, &c); + printf("MEDIA = %.1f\n", (a * 2 + b * 3 + c * 5) / (2 + 3 + 5)); + return 0; +}