Skip to content

Instantly share code, notes, and snippets.

@arrbxr
Created February 16, 2018 20:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arrbxr/94cad03605f5a60403a8d71bb30dcc04 to your computer and use it in GitHub Desktop.
Save arrbxr/94cad03605f5a60403a8d71bb30dcc04 to your computer and use it in GitHub Desktop.
Largest_no_of_Four_variable created by arrbxr - https://repl.it/@arrbxr/LargestnoofFourvariable
class Main {
public static void main(String[] args) {
int a = 3, b = 6, c = 11, d = 10, e;
e = a>b ? (a>c ? (a>d ? a:d):(c>d ? c:d)):(b>c ? (b>d? b:d):(c>d ? c:d));
System.out.println("Largest Number = " + e);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment