I don't know why there is error showing in this program I'm stuked with it from last few hours
//here is the program import java.util.Scanner; public class detection { public static void main(String args[]) { Scanner sc=new Scanner(System.in); System.out.println("enter your age"); int a=sc.nextInt(); System.out.println("enter your age"); int b=sc.nextInt(); System.out.println("enter your age"); int c=sc.nextInt(); if(a>b && a>c) { System.out.println("oldest is "+a); } else if(b>c && b>a) { System.out.println("oldest is "+b); } else { System.out.println("oldest is "+c); } if(a<b && a<c) { System.out.println("youngest is "+a); } else if(b<c && b<a) { System.out.println("youngest is "+b); } else { System.out.println("youngest is "+c); } } } https://code.sololearn.com/c3s4l0cTh6jG/?ref=app https://code.sololearn.com/cNcN2gxyxeKw/?ref=app