Advertisement
DanikYakush

Task8

Jul 2nd, 2022
615
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import java.util.Scanner;
  2.  
  3. public class Task8 {
  4.     public static void main(String[] args) {
  5.         int a, b, c ,d, z;
  6.         Scanner in = new Scanner(System.in);
  7.         a = in.nextInt();
  8.         b = in.nextInt();
  9.         c = in.nextInt();
  10.         d = in.nextInt();
  11.         z = Math.max(Math.min(a, b), Math.min(c, d));
  12.         System.out.println(z);
  13.     }
  14. }
  15.  
Advertisement
RAW Paste Data Copied
Advertisement