#include <stdio.h>
 
int main() {
    double a, b, media = 0;
    
    scanf("%lf",&a);
    scanf("%lf",&b);
    
    media = (a + b) / 2;
    printf("MEDIA = %lf", media);
    
    return 0;

    /*Verificar o porquê do double não funcionar*/
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: