1006 Average 2 #include <stdio.h> int main() { double A, B, C, MEDIA; scanf("%lf",&A); scanf("%lf",&B); scanf("%lf",&C); MEDIA =((A*2)+(B*3)+(C*5))/(2+3+5); printf("MEDIA = %.1lf\n",MEDIA); return 0; }
No comments: