c++ notadel estudiante
#include <conio.h>
#include <stdio.h>
int main()
{
float nota;
printf ("ingrese la nota:");
scanf ("%f", ¬a);
while (nota<0 || nota>10 )
{
printf( "\n ERROR: Nota incorrecta, debe ser >= 0 y <= 10\n" );
printf ("introduce nota:");
scanf ("%f", ¬a);
}
if (nota>=5 )
printf ("APROBADO");
else
printf ("SUSPENDIDIO");
return 0;
}
#include <stdio.h>
int main()
{
float nota;
printf ("ingrese la nota:");
scanf ("%f", ¬a);
while (nota<0 || nota>10 )
{
printf( "\n ERROR: Nota incorrecta, debe ser >= 0 y <= 10\n" );
printf ("introduce nota:");
scanf ("%f", ¬a);
}
if (nota>=5 )
printf ("APROBADO");
else
printf ("SUSPENDIDIO");
return 0;
}
Comentarios
Publicar un comentario