Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Main
- {
- public static void main(String[] args)
- {
- Scanner scan = new Scanner (System.in);
- System.out.println ("Podaj ocenę");
- int ocena = scan.nextInt();
- switch (ocena)
- {
- case 1:
- System.out.println ("niedostateczny");
- break;
- case 2:
- System.out.println ("dopuszczający");
- break;
- case 3:
- System.out.println ("dostateczny");
- break;
- case 4:
- System.out.println ("dobry");
- break;
- case 5:
- System.out.println ("bardzo dobry");
- break;
- case 6:
- System.out.println ("celujący");
- default:
- System.out.println ("Przykro mi, nie ma takiej oceny");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement