Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- /*
- * File: main.cpp
- * Author: Sonny
- *
- * Created on 5 de mayo de 2016, 12:27 PM
- */
- #include <cstdlib>
- #include <iostream>
- using namespace std;
- /*
- *
- */
- int main(int argc, char** argv) {
- int calif;
- cout << "Dame calificacion: ";
- cin >> calif;
- if (calif >= 0 && calif <= 4)
- cout << "Deficiente";
- else
- if (calif >= 5 && calif <= 6)
- cout << "Regular";
- else
- if (calif == 7)
- cout << "Bien";
- else
- if (calif >= 8 && calif <= 10)
- cout << "Muy bien";
- else
- cout<<"Opcion invalidaaaa";
- /* switch(calif){
- case 0:
- case 1:
- case 2:
- case 3:
- case 4: cout <<"Deficiente";
- ;break;
- case 5:
- case 6: cout<<"Regular";
- ;break;
- case 7: cout<<"Bien";
- ;break;
- case 8:
- case 9:
- case 10: cout <<"Muy bien";
- ;break;
- default: cout <<"Opcion invalida";
- }*/
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement