Advertisement
Klokova_Sofi

Egor 23_10_20

Oct 23rd, 2020
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.66 KB | None | 0 0
  1. package com.company;
  2.  
  3. import java.util.*;
  4.  
  5. public class Main {
  6.  
  7.     public static void main(String[] args) {
  8.        
  9.         Scanner keyboard = new Scanner(System.in);
  10.         boolean alive = keyboard.nextBoolean();
  11.         boolean big = keyboard.nextBoolean();
  12.         if (big = true) {
  13.             if (alive = true) {
  14.                 System.out.println("whale");
  15.             } else {
  16.                 System.out.println("mountain");
  17.             }
  18.         } else {
  19.             if (alive = true) {
  20.                 System.out.println("mouse");
  21.             } else {
  22.                 System.out.println("zombie kitten");
  23.             }
  24.         }
  25.  
  26.  
  27.     }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement