Advertisement
theblackshibe

Untitled

Dec 10th, 2020
363
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. import java.util.Scanner;
  2. public class Main
  3. {
  4. public static void main(String[] args)
  5. {
  6. Scanner scan = new Scanner (System.in);
  7. System.out.println ("Podaj ocenę");
  8. int ocena = scan.nextInt();
  9. switch (ocena)
  10. {
  11. case 1:
  12. System.out.println ("niedostateczny");
  13. break;
  14. case 2:
  15. System.out.println ("dopuszczający");
  16. break;
  17. case 3:
  18. System.out.println ("dostateczny");
  19. break;
  20. case 4:
  21. System.out.println ("dobry");
  22. break;
  23. case 5:
  24. System.out.println ("bardzo dobry");
  25. break;
  26. case 6:
  27. System.out.println ("celujący");
  28. default:
  29. System.out.println ("Przykro mi, nie ma takiej oceny");
  30. }
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement