+/EE379K

programming paradigms

git clone https://git.julia.blue/+/EE379K

Joseph RyanFix 'default' switch arm bug36054c3

master
201 B8 linesraw
1public class Ternary {
2    public static void main(String[] s) {
3        int x = 4;
4        int y = 5;
5        int z = x * y % 2 == 0 ? -1 : 1;
6        z = x * y % 2 == 0 ? y < x ? -1 : 0 : 1;
7    }
8}