平均数2
This commit is contained in:
parent
937af5fba4
commit
cb6e3749ee
|
@ -0,0 +1,9 @@
|
||||||
|
#include <cstdio>
|
||||||
|
|
||||||
|
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;
|
||||||
|
}
|
Loading…
Reference in New Issue