import java.util.*;
import java.lang.*;
import java.io.*;

// The main method must be in a class named "Main".
class Main {
    public static void main(String[] args) {
        int a,b,c,n;
     Scanner s = new Scanner(System.in); 
     System.out.println("Enter A: ");
     a= s.nextInt();
     System.out.println("Enter B: ");
     b= s.nextInt();
     System.out.println("Enter C: ");
     c= s.nextInt();
     if(a>c && a<b || a<c && a>b) System.out.println("A 2nd large ");
     else if(b>c && b<a || b>a && b<c) System.out.println("B 2nd large");
     else System.out.println("C 2nd large");
    }
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: