Created
April 5, 2017 20:10
-
-
Save m4hi2/b8046bd517615abdeddd06d4da9eae38 to your computer and use it in GitHub Desktop.
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
| #include <stdio.h> | |
| int main() { | |
| float a,b,c,med; | |
| scanf("%f%f%f", &a, &b, &c); | |
| med = ((a*2) + (b*3)+(c*5)) / (2+3+5); | |
| printf("MEDIA = %.1f\n", med); | |
| return 0; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment