fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. double a, b;
  5. scanf("%lf", &a);
  6. scanf("%lf", &b);
  7. printf("MEDIA = %5f", (a + b) / 2);
  8. }
  9.  
  10. //https://pt.stackoverflow.com/q/435521/101
Success #stdin #stdout 0s 4276KB
stdin
4
5
stdout
MEDIA = 4.500000