ΠΡΠ²ΠΎΠ΄ΠΈΡ Π²ΡΡ ΠΏΡΠ°Π²ΠΈΠ»ΡΠ½ΠΎ, Π½ΠΎ Π²ΡΠ΄Π°Π΅Ρ ΠΎΡΠΈΠ±ΠΊΡ, Π² ΡΠ΅ΠΌ ΠΏΡΠΎΠ±Π»Π΅ΠΌΠ°?
package com.javarush.task.task04.task0419;
/*
ΠΠ°ΠΊΡΠΈΠΌΡΠΌ ΡΠ΅ΡΡΡΠ΅Ρ
ΡΠΈΡΠ΅Π»
*/
import java.io.*;
import java.util.*;
public class Solution {
public static void main(String[] args) throws Exception {
//Π½Π°ΠΏΠΈΡΠΈΡΠ΅ ΡΡΡ Π²Π°Ρ ΠΊΠΎΠ΄
Scanner s = new Scanner(System.in);
int a = s.nextInt();
int b = s.nextInt();
int c = s.nextInt();
int d = s.nextInt();
int max = a;
if (max < b){
max = b;
if (max < c)
max = c;
if (max < d)
max = d;
}
System.out.println(max);
}
}