Nathan Coulas

CCC '12 J2 - Sounds fishy!

ccc12j2 JAVA8 06 Nov, 2019 2.078s 3 points

Source Code

import java.io.*;
import java.util.*;

public class Main {
    public static void main(String[] args) {
        
                      Scanner in = new Scanner(System.in);
        int a  = in.nextInt();
        int b  = in.nextInt();
        int c  = in.nextInt();
        int d  = in.nextInt();
        
        if(a < b && b < c && c < d){
            System.out.println("Fish Rising");
        }else if(a > b && b > c && c > d){
            System.out.println("Fish Diving");
        }else if(a == b && b == c && c == d){
            System.out.println("Fish At Constant Depth");
        }else{
            System.out.println("No Fish");
        }
  
       

    }
}