-
-
Save gabrielcesar/823cd934a828ac297b04a87f03ff75fd to your computer and use it in GitHub Desktop.
e) Average 1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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