Skip to content

Instantly share code, notes, and snippets.

@arrbxr
Created February 16, 2018 20:55
Show Gist options
  • Save arrbxr/89e9a6cd689910cd46dc97ca91accef7 to your computer and use it in GitHub Desktop.
Save arrbxr/89e9a6cd689910cd46dc97ca91accef7 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