Skip to content

Instantly share code, notes, and snippets.

@e-tverdokhleb
Created November 13, 2015 06:30
Show Gist options
  • Save e-tverdokhleb/43a8581c9a224a622886 to your computer and use it in GitHub Desktop.
Save e-tverdokhleb/43a8581c9a224a622886 to your computer and use it in GitHub Desktop.
public class Main {
public static void main(String[] args) {
System.out.println(min(14, 112, 13));
}
public static int min(int a, int b, int c) {
int min = a;
if ((b<a)&&(b<c)) {
min = b;
}
if ((c<a)&&(c<b)) {
min = c;
}
return min;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment