package ru.osetsky;

public class Max {
	public int max (int first,int second) {
		int result = first >= second ? first : second;
		return result;
	}
	
	public int max (int first, int second, int third) {
		
		int resultmax1 = first >= second ? first : second;
		int resultmax2 = first >= third ? first : third;
		int resultmax3 = second >= third ? second : third;
		int resultmax4 = resultmax1 >= resultmax2 ? resultmax1 : resultmax2;
		int resultmax5 = resultmax4 >= resultmax3 ? resultmax4 : resultmax3;
		return resultmax5;
		
	}
}
@@ -80,20 +80,14 @@
 %7B%0A%09%09
-int result =
+return
  fir
@@ -121,25 +121,8 @@
 nd;%0A
-%09%09return result;%0A
 %09%7D%0A%09
@@ -178,333 +178,48 @@
 d) %7B
-%0A%09
 %09%0A%09%09
-int resultmax1 = first %3E= second ? first : second;%0A%09%09int resultmax2 = first %3E= third ? first : third;%0A%09%09int resultmax3 = 
+return max(first,max(
 second
- %3E= 
+,
 third
- ? second : third;%0A%09%09int resultmax4 = resultmax1 %3E= resultmax2 ? resultmax1 : resultmax2;%0A%09%09int resultmax5 = resultmax4 %3E= resultmax3 ? resultmax4 : resultmax3;%0A%09%09return resultmax5;%0A%09
+));
 %09%0A%09%7D

Add change 3