Guest User

Untitled

a guest
Jun 23rd, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. #include <cstdlib>
  2. #include <iostream>
  3.  
  4. using namespace std;
  5.  
  6. int main(int argc, char *argv[])
  7. {
  8. int ocena;
  9. cin>>ocena;
  10. while (ocena !=0)
  11. {
  12.  
  13. switch (ocena)
  14. {
  15. case 1:
  16. cout<<"niedostateczny";
  17. break;
  18. case 2:
  19.  
  20. cout<<"dopuszczający";
  21. break;
  22. case 3:
  23. cout<<"dostateczny";
  24. break;
  25. default: cout<<"nie ma takiej oceny";
  26. break;
  27. }
  28. cin>>ocena;
  29. }
  30. system("PAUSE");
  31. return EXIT_SUCCESS;
  32. }
Add Comment
Please, Sign In to add comment