Ternary Operator,Prime Number,GCD
python
dev.to
Ternary Operator for 3 numbers : Java: class Main { public static void main(String[] args) { int a = 10, b = 5, c = 8; int smallest = (a b) ? (a c ? a : c) : (b c ? b : c); System.out.println(smallest); } } Output: Javascript: let a = 10, b = 55, c = 80; let smallest = (a b) ? (a c ? a : c) : (b c ? b : c); console.log(smallest); Output: Python: