平均数1

This commit is contained in:
flykhan 2023-03-23 23:11:06 +08:00
parent 9cac8f9c5d
commit d21efefad9
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
#include <iostream>
using namespace std;
int main()
{
float a, b, w = 3.5 + 7.5;
scanf("%f%f", &a, &b);
printf("MEDIA = %.5f", a * 3.5 / w + b * 7.5 / w);
return 0;
}