Skip to content

Instantly share code, notes, and snippets.

@gabrielcesar
Created July 21, 2016 14:32
Show Gist options
  • Save gabrielcesar/823cd934a828ac297b04a87f03ff75fd to your computer and use it in GitHub Desktop.
Save gabrielcesar/823cd934a828ac297b04a87f03ff75fd to your computer and use it in GitHub Desktop.
e) Average 1
/*
* e
* Average 1
*/
#include <stdio.h>
int main ( void )
{
float a;
float b;
scanf ( "%f", &a );
scanf ( "%f", &b );
printf("MEDIA = %.5lf\n",( ( ( a * 3.5 ) + ( b * 7.5 )) / ( 3.5 + 7.5 )));
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment