c++ notadel estudiante

#include <conio.h>
#include <stdio.h>

int main()
{
float nota;
printf ("ingrese la nota:");
scanf ("%f", &nota);
while (nota<0  ||  nota>10 )
{
printf( "\n   ERROR: Nota incorrecta, debe ser >= 0 y <= 10\n" );
printf ("introduce nota:");
scanf ("%f", &nota);
}
if (nota>=5 )
printf ("APROBADO");
else
printf ("SUSPENDIDIO");

return 0;
}

Comentarios

Entradas populares