famouscoder
Wednesday, May 6, 2020
URI 1006 - Average 2
int main()
{
double A,B,C,MEDIA;
scanf("%lf%lf%lf",&A,&B,&C);
A=A*2;
B=B*3;
C=C*5;
MEDIA = (A+B+C)/10;
printf("MEDIA = %.1lf\n",MEDIA);
return 0;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment