Created
February 16, 2018 20:55
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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