// Escribir un programa que lea la nota numérica de un alumno, y escriba  SOBRESALIENTE, NOTABLE, APROBADO, SUSPENSO convenientemente

#include <stdio.h> //hay que hacer que si se saca 8.6 sea un sobresaliente
#include <math.h>
int main() {
    float n;
    printf("Introduce la nota:\n");
    scanf("%f", &n);

    if (n<0 || n>10)
        printf("No esta definido.");
    else if (n<5)
        printf("SUSPENSO");
     else if (n<7)
            printf("APROBADO");
     else if (n<9)
         printf("NOTABLE");
    else
        printf("SOBRESALIENTE");
    
    return 0;
}

Embed on website

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