Home URI 1079 Solve Solve of URI 1079 (Weighted Averages) in C #include<stdio.h> int main(void){ float a,b,c,total,aver; int i,n; scanf("%d",&n); for(i=1;i<=n;i++){ scanf("%f%f%f",&a,&b,&c); total=a*2.0+b*3.0+c*5.0; aver=total/10.0; printf("%.1f\n",aver); } return 0; } Facebook Twitter