#include <stdio.h>
#define LEYENDA_A "Aprobado"
#define LEYENDA_B "Desaprobado"
#define NOTA_MIN 7

int main() {
    int N_1;
    int N_2;
    int N_3;
    int Suma;
    int Prom;
    scanf("%d",& N_1);
    scanf("%d",& N_2);
    scanf("%d",& N_3);
    Suma= N_1+N_2+N_3;
    Prom= Suma/3;        // Se calclula el promedio 
       printf("Prom=%d\n",Prom);
    if (Prom>=NOTA_MIN) { 
        printf("LEYENDA_A");// se muestra mensaje de aprobado
    } else {
        printf("LEYENDA_B");
    }
    return 0;
}

Embed on website

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