Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class dzem {
- public static void main(String[] args) {
- Scanner in = new Scanner(System.in);
- int sloik = in.nextInt();
- String Dzem;
- switch(sloik){
- case 1: Dzem="truskawkowy";
- break;
- case 2: Dzem="malinowy";
- break;
- case 3: Dzem="brzoskwiniowy";
- break;
- case 4: Dzem="agrestowy";
- break;
- default: Dzem= "Brak takiego rodzaju";
- break;
- }
- System.out.println(Dzem);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement