I did so
public static void main(String[] args) { int a = in.nextInt(); int b = in.nextInt(); int c = in.nextInt(); int d = in.nextInt(); int x =0; if (a<b){ if (a<c){ if (a<d)x =a; } else if (b<a){ if (b<c) if (b<d)x =b; } else if (c<a){ if (c<b) if (c<d)x =c; } else if (d<b){ if (d<c) if (d<a)x =d; } System.out.println(x); } } } when entering numbers 5,7,3,9 gives 5, and should 3. Tell me what the error is. 5 7 3 9 5