SHARE
TWEET

hjdffu

a guest Mar 25th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int i,n;
  5.     float a,b,c,d;
  6.     scanf("%d",&n);
  7.     for(i=0;i<n;i++){
  8.         scanf("%f%f%f%",&a,&b,&c);
  9.         d=((a*2.0+b*3.0+c*5.0)/(2.0+3.0+5.0));
  10.         printf("%f\n",d);
  11.     }
  12.     return 0;
  13. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top