top of page

EJERCICIO POR ORDEN DE LISTA:​

REFERENCIA BIBLIOGRÁFICA: PROGRAMACIÓN Y RESOLUCIÓN DE PROBLEMAS CON C++ (954 PÁG.) N. Dale y Ch. Weems,

Programación y Resolución de Problemas con C++, Universidad Nacional Autónoma de México, Facultad de Ingeniería, Editorial McGrawHill, 2005, [En línea] disponible en: http://kali.azc.uam.mx/clc/03_docencia/licenciatura/l_poo/progra++.pdf

17)
PÁG. 199 EJERCICIOS DE PREPARACIÓN PARA EXÁMEN
PROBLEMA 14

#include <iostream>
#include <cmath>
using namespace std;

int main()
{
   double x;
   cout<<"Inserte la nota conseguida:";
   cin>>x;
   if (x < 50)
   {
       cout << "Failing" << endl;
   }
       else if (x < 60)
       {
       cout << "Below average" << endl;
       }
       else if (x < 70)
       {    
       cout << "Average" << endl;
       }
       else if (x < 80)
       {
       cout << "Above average" << endl;
       }
       else if (x < 90)
       {
       cout << "Very good" << endl;
       }
       else if (x < 100)
       {
       cout << "Excellent" << endl;
       }
   return 0;

}

image.png
bottom of page