c++ notas del estudiante

#include <conio.h>
#include <stdio.h>
int main()
  {
  float nota;
  printf ("\n ingrese la nota del estudiante:");
  scanf ("%f", &nota);
 
  if (nota<0 && nota>10)
  printf (" \n ERROR: nota incorrecta.");
  else
  if  ( nota >= 9 )
  printf ("\n  sobresaliente");
   else          
    if ( nota >= 7 )
    printf( "\n   NOTABLE" );
     else                
if ( nota >= 6 )                    
printf ( "\n   BIEN" );              
 else                    
 if ( nota >= 5 )                      
  printf ( "\n   SUFICIENTE" );
    else                      
 if ( nota >= 3 )                
printf ( "\n   INSUFICIENTE" );                      
else                          
printf ( "\n   MUY DEFICIENTE" );
return 0;
}

Comentarios

Entradas populares