URI 1006
Solution of URI 1006 >>Average 2
#include < stdio.h > int main() { double A, B, C, MEDIA; scanf("%lf%lf%lf", &A, &B, &C); MEDIA = ( ( A * 2 ) + ( B * 3 ) + ( C * 5 ) ) / 10; printf("MEDIA = %.1lf\n", MEDIA); return 0; }
#include < stdio.h > int main() { double A, B, C, MEDIA; scanf("%lf%lf%lf", &A, &B, &C); MEDIA = ( ( A * 2 ) + ( B * 3 ) + ( C * 5 ) ) / 10; printf("MEDIA = %.1lf\n", MEDIA); return 0; }
Comments
Post a Comment