Advertisement
Guest User

Untitled

a guest
May 5th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6.  
  7. /*
  8. * File: main.cpp
  9. * Author: Sonny
  10. *
  11. * Created on 5 de mayo de 2016, 12:27 PM
  12. */
  13.  
  14. #include <cstdlib>
  15. #include <iostream>
  16. using namespace std;
  17.  
  18. /*
  19. *
  20. */
  21. int main(int argc, char** argv) {
  22. int calif;
  23. cout << "Dame calificacion: ";
  24. cin >> calif;
  25. if (calif >= 0 && calif <= 4)
  26. cout << "Deficiente";
  27. else
  28. if (calif >= 5 && calif <= 6)
  29. cout << "Regular";
  30. else
  31. if (calif == 7)
  32. cout << "Bien";
  33. else
  34. if (calif >= 8 && calif <= 10)
  35. cout << "Muy bien";
  36. else
  37. cout<<"Opcion invalidaaaa";
  38. /* switch(calif){
  39. case 0:
  40. case 1:
  41. case 2:
  42. case 3:
  43. case 4: cout <<"Deficiente";
  44. ;break;
  45. case 5:
  46. case 6: cout<<"Regular";
  47. ;break;
  48. case 7: cout<<"Bien";
  49. ;break;
  50. case 8:
  51. case 9:
  52. case 10: cout <<"Muy bien";
  53. ;break;
  54. default: cout <<"Opcion invalida";
  55. }*/
  56. return 0;
  57. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement